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