| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 CHROMECAST_BROWSER_CAST_BROWSER_MAIN_PARTS_H_ | 5 #ifndef CHROMECAST_BROWSER_CAST_BROWSER_MAIN_PARTS_H_ |
| 6 #define CHROMECAST_BROWSER_CAST_BROWSER_MAIN_PARTS_H_ | 6 #define CHROMECAST_BROWSER_CAST_BROWSER_MAIN_PARTS_H_ |
| 7 | 7 |
| 8 #include "base/macros.h" | 8 #include "base/macros.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" |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 public: | 23 public: |
| 24 // This class does not take ownership of |url_request_content_factory|. | 24 // This class does not take ownership of |url_request_content_factory|. |
| 25 CastBrowserMainParts(const content::MainFunctionParams& parameters, | 25 CastBrowserMainParts(const content::MainFunctionParams& parameters, |
| 26 URLRequestContextFactory* url_request_context_factory); | 26 URLRequestContextFactory* url_request_context_factory); |
| 27 ~CastBrowserMainParts() override; | 27 ~CastBrowserMainParts() override; |
| 28 | 28 |
| 29 // content::BrowserMainParts implementation: | 29 // content::BrowserMainParts implementation: |
| 30 void PreMainMessageLoopStart() override; | 30 void PreMainMessageLoopStart() override; |
| 31 void PostMainMessageLoopStart() override; | 31 void PostMainMessageLoopStart() override; |
| 32 void ToolkitInitialized() override; | 32 void ToolkitInitialized() override; |
| 33 int PreCreateThreads() override; | 33 int PreCreateThreadsBegin() override; |
| 34 void PreMainMessageLoopRun() override; | 34 void PreMainMessageLoopRun() override; |
| 35 bool MainMessageLoopRun(int* result_code) override; | 35 bool MainMessageLoopRun(int* result_code) override; |
| 36 void PostMainMessageLoopRun() override; | 36 void PostMainMessageLoopRun() override; |
| 37 | 37 |
| 38 private: | 38 private: |
| 39 scoped_ptr<CastBrowserProcess> cast_browser_process_; | 39 scoped_ptr<CastBrowserProcess> cast_browser_process_; |
| 40 const content::MainFunctionParams parameters_; // For running browser tests. | 40 const content::MainFunctionParams parameters_; // For running browser tests. |
| 41 URLRequestContextFactory* const url_request_context_factory_; | 41 URLRequestContextFactory* const url_request_context_factory_; |
| 42 scoped_ptr<net::NetLog> net_log_; | 42 scoped_ptr<net::NetLog> net_log_; |
| 43 | 43 |
| 44 DISALLOW_COPY_AND_ASSIGN(CastBrowserMainParts); | 44 DISALLOW_COPY_AND_ASSIGN(CastBrowserMainParts); |
| 45 }; | 45 }; |
| 46 | 46 |
| 47 } // namespace shell | 47 } // namespace shell |
| 48 } // namespace chromecast | 48 } // namespace chromecast |
| 49 | 49 |
| 50 #endif // CHROMECAST_BROWSER_CAST_BROWSER_MAIN_PARTS_H_ | 50 #endif // CHROMECAST_BROWSER_CAST_BROWSER_MAIN_PARTS_H_ |
| OLD | NEW |