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

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

Issue 284113011: Repurpose views+content example into a generic multiprocess views runtime (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase for horrible copyright header change in revert CL Created 6 years, 6 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
(Empty)
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef UI_VIEWS_EXAMPLES_CONTENT_CLIENT_EXAMPLES_CONTENT_BROWSER_CLIENT_H_
6 #define UI_VIEWS_EXAMPLES_CONTENT_CLIENT_EXAMPLES_CONTENT_BROWSER_CLIENT_H_
7
8 #include "base/macros.h"
9 #include "content/public/browser/content_browser_client.h"
10
11 namespace content {
12 class ShellBrowserContext;
13 }
14
15 namespace views {
16 namespace examples {
17
18 class ExamplesBrowserMainParts;
19
20 class ExamplesContentBrowserClient : public content::ContentBrowserClient {
21 public:
22 ExamplesContentBrowserClient();
23 virtual ~ExamplesContentBrowserClient();
24
25 // content::ContentBrowserClient:
26 virtual content::BrowserMainParts* CreateBrowserMainParts(
27 const content::MainFunctionParams& parameters) OVERRIDE;
28 virtual net::URLRequestContextGetter* CreateRequestContext(
29 content::BrowserContext* browser_context,
30 content::ProtocolHandlerMap* protocol_handlers,
31 content::ProtocolHandlerScopedVector protocol_interceptors) OVERRIDE;
32
33 private:
34 ExamplesBrowserMainParts* examples_browser_main_parts_;
35
36 DISALLOW_COPY_AND_ASSIGN(ExamplesContentBrowserClient);
37 };
38
39 } // namespace examples
40 } // namespace views
41
42 #endif // UI_VIEWS_EXAMPLES_CONTENT_CLIENT_EXAMPLES_CONTENT_BROWSER_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698