| OLD | NEW |
| 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 ANDROID_WEBVIEW_BROWSER_AW_BROWSER_MAIN_PARTS_H_ | 5 #ifndef ANDROID_WEBVIEW_BROWSER_AW_BROWSER_MAIN_PARTS_H_ |
| 6 #define ANDROID_WEBVIEW_BROWSER_AW_BROWSER_MAIN_PARTS_H_ | 6 #define ANDROID_WEBVIEW_BROWSER_AW_BROWSER_MAIN_PARTS_H_ |
| 7 | 7 |
| 8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
| 9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
| 10 #include "content/public/browser/browser_main_parts.h" | 10 #include "content/public/browser/browser_main_parts.h" |
| 11 | 11 |
| 12 namespace base { | 12 namespace base { |
| 13 class MessageLoop; | 13 class MessageLoop; |
| 14 } | 14 } |
| 15 | 15 |
| 16 namespace breakpad { |
| 17 class CrashMicroDumpManager; |
| 18 } |
| 19 |
| 16 namespace android_webview { | 20 namespace android_webview { |
| 17 | 21 |
| 18 class AwBrowserContext; | 22 class AwBrowserContext; |
| 19 | 23 |
| 20 class AwBrowserMainParts : public content::BrowserMainParts { | 24 class AwBrowserMainParts : public content::BrowserMainParts { |
| 21 public: | 25 public: |
| 22 explicit AwBrowserMainParts(AwBrowserContext* browser_context); | 26 explicit AwBrowserMainParts(AwBrowserContext* browser_context); |
| 23 ~AwBrowserMainParts() override; | 27 ~AwBrowserMainParts() override; |
| 24 | 28 |
| 25 // Overriding methods from content::BrowserMainParts. | 29 // Overriding methods from content::BrowserMainParts. |
| 26 void PreEarlyInitialization() override; | 30 void PreEarlyInitialization() override; |
| 27 int PreCreateThreads() override; | 31 int PreCreateThreads() override; |
| 28 void PreMainMessageLoopRun() override; | 32 void PreMainMessageLoopRun() override; |
| 29 bool MainMessageLoopRun(int* result_code) override; | 33 bool MainMessageLoopRun(int* result_code) override; |
| 30 | 34 |
| 31 private: | 35 private: |
| 32 // Android specific UI MessageLoop. | 36 // Android specific UI MessageLoop. |
| 33 scoped_ptr<base::MessageLoop> main_message_loop_; | 37 scoped_ptr<base::MessageLoop> main_message_loop_; |
| 34 | 38 |
| 35 AwBrowserContext* browser_context_; // weak | 39 AwBrowserContext* browser_context_; // weak |
| 40 scoped_ptr<breakpad::CrashMicroDumpManager> crash_micro_dump_manager_; |
| 36 | 41 |
| 37 DISALLOW_COPY_AND_ASSIGN(AwBrowserMainParts); | 42 DISALLOW_COPY_AND_ASSIGN(AwBrowserMainParts); |
| 38 }; | 43 }; |
| 39 | 44 |
| 40 } // namespace android_webview | 45 } // namespace android_webview |
| 41 | 46 |
| 42 #endif // ANDROID_WEBVIEW_BROWSER_AW_BROWSER_MAIN_PARTS_H_ | 47 #endif // ANDROID_WEBVIEW_BROWSER_AW_BROWSER_MAIN_PARTS_H_ |
| OLD | NEW |