Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(548)

Side by Side Diff: ui/views/examples/content_client/examples_content_browser_client.h

Issue 187223003: Allow content layer to pass ProtocolInterceptors when we create URLRequestContext (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef UI_VIEWS_EXAMPLES_CONTENT_CLIENT_EXAMPLES_CONTENT_BROWSER_CLIENT_H_ 5 #ifndef UI_VIEWS_EXAMPLES_CONTENT_CLIENT_EXAMPLES_CONTENT_BROWSER_CLIENT_H_
6 #define UI_VIEWS_EXAMPLES_CONTENT_CLIENT_EXAMPLES_CONTENT_BROWSER_CLIENT_H_ 6 #define UI_VIEWS_EXAMPLES_CONTENT_CLIENT_EXAMPLES_CONTENT_BROWSER_CLIENT_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "content/public/browser/content_browser_client.h" 9 #include "content/public/browser/content_browser_client.h"
10 10
11 namespace content { 11 namespace content {
12 class ShellBrowserContext; 12 class ShellBrowserContext;
13 } 13 }
14 14
15 namespace views { 15 namespace views {
16 namespace examples { 16 namespace examples {
17 17
18 class ExamplesBrowserMainParts; 18 class ExamplesBrowserMainParts;
19 19
20 class ExamplesContentBrowserClient : public content::ContentBrowserClient { 20 class ExamplesContentBrowserClient : public content::ContentBrowserClient {
21 public: 21 public:
22 ExamplesContentBrowserClient(); 22 ExamplesContentBrowserClient();
23 virtual ~ExamplesContentBrowserClient(); 23 virtual ~ExamplesContentBrowserClient();
24 24
25 // content::ContentBrowserClient: 25 // content::ContentBrowserClient:
26 virtual content::BrowserMainParts* CreateBrowserMainParts( 26 virtual content::BrowserMainParts* CreateBrowserMainParts(
27 const content::MainFunctionParams& parameters) OVERRIDE; 27 const content::MainFunctionParams& parameters) OVERRIDE;
28 virtual net::URLRequestContextGetter* CreateRequestContext( 28 virtual net::URLRequestContextGetter* CreateRequestContext(
29 content::BrowserContext* browser_context, 29 content::BrowserContext* browser_context,
30 content::ProtocolHandlerMap* protocol_handlers) OVERRIDE; 30 content::ProtocolHandlerMap* protocol_handlers,
31 content::ProtocolHandlerScopedVector protocol_interceptors) OVERRIDE;
31 32
32 private: 33 private:
33 ExamplesBrowserMainParts* examples_browser_main_parts_; 34 ExamplesBrowserMainParts* examples_browser_main_parts_;
34 35
35 DISALLOW_COPY_AND_ASSIGN(ExamplesContentBrowserClient); 36 DISALLOW_COPY_AND_ASSIGN(ExamplesContentBrowserClient);
36 }; 37 };
37 38
38 } // namespace examples 39 } // namespace examples
39 } // namespace views 40 } // namespace views
40 41
41 #endif // UI_VIEWS_EXAMPLES_CONTENT_CLIENT_EXAMPLES_CONTENT_BROWSER_CLIENT_H_ 42 #endif // UI_VIEWS_EXAMPLES_CONTENT_CLIENT_EXAMPLES_CONTENT_BROWSER_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698