This source file includes following definitions.
- CreateBrowserMainParts
- CreateRequestContext
#include "ui/views/examples/content_client/examples_content_browser_client.h"
#include "content/shell/browser/shell_browser_context.h"
#include "ui/views/examples/content_client/examples_browser_main_parts.h"
namespace views {
namespace examples {
ExamplesContentBrowserClient::ExamplesContentBrowserClient()
: examples_browser_main_parts_(NULL) {
}
ExamplesContentBrowserClient::~ExamplesContentBrowserClient() {
}
content::BrowserMainParts* ExamplesContentBrowserClient::CreateBrowserMainParts(
const content::MainFunctionParams& parameters) {
examples_browser_main_parts_ = new ExamplesBrowserMainParts(parameters);
return examples_browser_main_parts_;
}
net::URLRequestContextGetter*
ExamplesContentBrowserClient::CreateRequestContext(
content::BrowserContext* content_browser_context,
content::ProtocolHandlerMap* protocol_handlers,
content::ProtocolHandlerScopedVector protocol_interceptors) {
content::ShellBrowserContext* shell_context =
examples_browser_main_parts_->browser_context();
return shell_context->CreateRequestContext(protocol_handlers,
protocol_interceptors.Pass());
}
}
}