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

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

Issue 14767019: [content shell] move code common to several processes to a common dir (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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
« no previous file with comments | « content/test/layout_browsertest.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
11 #include "base/compiler_specific.h" 11 #include "base/compiler_specific.h"
12 #include "base/memory/scoped_ptr.h" 12 #include "base/memory/scoped_ptr.h"
13 #include "content/public/app/content_main_delegate.h" 13 #include "content/public/app/content_main_delegate.h"
14 #include "content/shell/shell_content_client.h" 14 #include "content/shell/common/shell_content_client.h"
15 15
16 namespace views { 16 namespace views {
17 namespace examples { 17 namespace examples {
18 18
19 class ExamplesContentBrowserClient; 19 class ExamplesContentBrowserClient;
20 20
21 class ExamplesMainDelegate : public content::ContentMainDelegate { 21 class ExamplesMainDelegate : public content::ContentMainDelegate {
22 public: 22 public:
23 ExamplesMainDelegate(); 23 ExamplesMainDelegate();
24 virtual ~ExamplesMainDelegate(); 24 virtual ~ExamplesMainDelegate();
25 25
26 // content::ContentMainDelegate implementation 26 // content::ContentMainDelegate implementation
27 virtual bool BasicStartupComplete(int* exit_code) OVERRIDE; 27 virtual bool BasicStartupComplete(int* exit_code) OVERRIDE;
28 virtual void PreSandboxStartup() OVERRIDE; 28 virtual void PreSandboxStartup() OVERRIDE;
29 virtual content::ContentBrowserClient* CreateContentBrowserClient() OVERRIDE; 29 virtual content::ContentBrowserClient* CreateContentBrowserClient() OVERRIDE;
30 30
31 private: 31 private:
32 void InitializeResourceBundle(); 32 void InitializeResourceBundle();
33 33
34 scoped_ptr<ExamplesContentBrowserClient> browser_client_; 34 scoped_ptr<ExamplesContentBrowserClient> browser_client_;
35 content::ShellContentClient content_client_; 35 content::ShellContentClient content_client_;
36 36
37 DISALLOW_COPY_AND_ASSIGN(ExamplesMainDelegate); 37 DISALLOW_COPY_AND_ASSIGN(ExamplesMainDelegate);
38 }; 38 };
39 39
40 } // namespace examples 40 } // namespace examples
41 } // namespace views 41 } // namespace views
42 42
43 #endif // UI_VIEWS_EXAMPLES_CONTENT_CLIENT_EXAMPLES_MAIN_DELEGATE_H_ 43 #endif // UI_VIEWS_EXAMPLES_CONTENT_CLIENT_EXAMPLES_MAIN_DELEGATE_H_
OLDNEW
« no previous file with comments | « content/test/layout_browsertest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698