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

Side by Side Diff: ui/views/examples/content_client/examples_main_delegate.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: use sandbox boilerplate for now Created 6 years, 7 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_MAIN_DELEGATE_H_ 5 #ifndef UI_VIEWS_EXAMPLES_CONTENT_CLIENT_EXAMPLES_MAIN_DELEGATE_H_
6 #define UI_VIEWS_EXAMPLES_CONTENT_CLIENT_EXAMPLES_MAIN_DELEGATE_H_ 6 #define UI_VIEWS_EXAMPLES_CONTENT_CLIENT_EXAMPLES_MAIN_DELEGATE_H_
7 7
8 #include <string>
9
10 #include "base/macros.h" 8 #include "base/macros.h"
11 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
12 #include "content/public/app/content_main_delegate.h" 10 #include "content/public/app/content_main_delegate.h"
13 #include "content/shell/common/shell_content_client.h" 11 #include "content/shell/common/shell_content_client.h"
14 12
15 namespace views { 13 namespace views {
16 namespace examples { 14 namespace examples {
17 15
18 class ExamplesContentBrowserClient; 16 class ExamplesContentBrowserClient;
17 class ExamplesMainParams;
19 18
20 class ExamplesMainDelegate : public content::ContentMainDelegate { 19 class ExamplesMainDelegate : public content::ContentMainDelegate {
21 public: 20 public:
22 ExamplesMainDelegate(); 21 explicit ExamplesMainDelegate(ExamplesMainParams* examples_params);
23 virtual ~ExamplesMainDelegate(); 22 virtual ~ExamplesMainDelegate();
24 23
25 // content::ContentMainDelegate implementation 24 // content::ContentMainDelegate implementation
26 virtual bool BasicStartupComplete(int* exit_code) OVERRIDE; 25 virtual bool BasicStartupComplete(int* exit_code) OVERRIDE;
27 virtual void PreSandboxStartup() OVERRIDE; 26 virtual void PreSandboxStartup() OVERRIDE;
28 virtual content::ContentBrowserClient* CreateContentBrowserClient() OVERRIDE; 27 virtual content::ContentBrowserClient* CreateContentBrowserClient() OVERRIDE;
29 28
30 private: 29 private:
31 scoped_ptr<ExamplesContentBrowserClient> browser_client_; 30 scoped_ptr<ExamplesContentBrowserClient> browser_client_;
32 content::ShellContentClient content_client_; 31 content::ShellContentClient content_client_;
32 ExamplesMainParams* examples_params_;
33 33
34 DISALLOW_COPY_AND_ASSIGN(ExamplesMainDelegate); 34 DISALLOW_COPY_AND_ASSIGN(ExamplesMainDelegate);
35 }; 35 };
36 36
37 } // namespace examples 37 } // namespace examples
38 } // namespace views 38 } // namespace views
39 39
40 #endif // UI_VIEWS_EXAMPLES_CONTENT_CLIENT_EXAMPLES_MAIN_DELEGATE_H_ 40 #endif // UI_VIEWS_EXAMPLES_CONTENT_CLIENT_EXAMPLES_MAIN_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698