blob: d269965c62ff013bc2598066ca5a395141e79243 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
// Copyright 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "apps/shell/shell_content_browser_client.h"
#include "apps/shell/shell_browser_context.h"
#include "apps/shell/shell_browser_main_parts.h"
#include "content/shell/browser/shell_browser_context.h"
namespace apps {
ShellContentBrowserClient::ShellContentBrowserClient()
: browser_main_parts_(NULL) {
}
ShellContentBrowserClient::~ShellContentBrowserClient() {
}
content::BrowserMainParts* ShellContentBrowserClient::CreateBrowserMainParts(
const content::MainFunctionParams& parameters) {
browser_main_parts_ = new ShellBrowserMainParts(parameters);
return browser_main_parts_;
}
net::URLRequestContextGetter*
ShellContentBrowserClient::CreateRequestContext(
content::BrowserContext* content_browser_context,
content::ProtocolHandlerMap* protocol_handlers) {
// TODO(jamescook): Should this be an off-the-record context?
return browser_main_parts_->browser_context()->CreateRequestContext(
protocol_handlers);
}
} // namespace apps
|