OLD | NEW |
---|---|
(Empty) | |
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 | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef ANDROID_WEBVIEW_LIB_WEBVIEW_MAIN_DELEGATE_H_ | |
6 #define ANDROID_WEBVIEW_LIB_WEBVIEW_MAIN_DELEGATE_H_ | |
7 | |
8 #include "base/basictypes.h" | |
9 #include "base/compiler_specific.h" | |
10 #include "chrome/app/chrome_main_delegate.h" | |
11 | |
12 namespace content { | |
13 class BrowserMainRunner; | |
14 } // namespace content | |
15 | |
16 namespace android_webview { | |
17 | |
18 // Android WebView override of ChromeMainDelegate. | |
Jói
2012/08/02 15:20:00
I think there should be a comment here, for the be
Torne
2012/08/03 10:31:36
Done.
| |
19 class WebViewMainDelegate : public ChromeMainDelegate { | |
20 public: | |
21 WebViewMainDelegate(); | |
22 virtual ~WebViewMainDelegate(); | |
23 | |
24 virtual int RunProcess( | |
25 const std::string& process_type, | |
26 const content::MainFunctionParams& main_function_params) OVERRIDE; | |
27 | |
28 private: | |
29 scoped_ptr<content::BrowserMainRunner> browser_runner_; | |
30 DISALLOW_COPY_AND_ASSIGN(WebViewMainDelegate); | |
31 }; | |
32 | |
33 } // namespace content | |
34 | |
35 #endif // ANDROID_WEBVIEW_LIB_WEBVIEW_MAIN_DELEGATE_H_ | |
OLD | NEW |