| 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 CHROME_FRAME_TEST_NET_FAKE_EXTERNAL_TAB_H_ | 5 #ifndef CHROME_FRAME_TEST_NET_FAKE_EXTERNAL_TAB_H_ |
| 6 #define CHROME_FRAME_TEST_NET_FAKE_EXTERNAL_TAB_H_ | 6 #define CHROME_FRAME_TEST_NET_FAKE_EXTERNAL_TAB_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 95 } | 95 } |
| 96 | 96 |
| 97 void set_crash_service(base::ProcessHandle handle) { | 97 void set_crash_service(base::ProcessHandle handle) { |
| 98 crash_service_ = handle; | 98 crash_service_ = handle; |
| 99 } | 99 } |
| 100 | 100 |
| 101 // content::BrowserMainParts implementation. | 101 // content::BrowserMainParts implementation. |
| 102 virtual void PreEarlyInitialization() OVERRIDE; | 102 virtual void PreEarlyInitialization() OVERRIDE; |
| 103 virtual void PostEarlyInitialization() OVERRIDE {} | 103 virtual void PostEarlyInitialization() OVERRIDE {} |
| 104 virtual void PreMainMessageLoopStart() OVERRIDE {} | 104 virtual void PreMainMessageLoopStart() OVERRIDE {} |
| 105 virtual MessageLoop* GetMainMessageLoop() OVERRIDE; |
| 105 virtual void PostMainMessageLoopStart() OVERRIDE {} | 106 virtual void PostMainMessageLoopStart() OVERRIDE {} |
| 106 virtual void ToolkitInitialized() OVERRIDE {} | 107 virtual void ToolkitInitialized() OVERRIDE {} |
| 107 virtual int PreCreateThreads() OVERRIDE; | 108 virtual int PreCreateThreads() OVERRIDE; |
| 108 virtual void PreMainMessageLoopRun() OVERRIDE; | 109 virtual void PreMainMessageLoopRun() OVERRIDE; |
| 109 virtual bool MainMessageLoopRun(int* result_code) OVERRIDE; | 110 virtual bool MainMessageLoopRun(int* result_code) OVERRIDE; |
| 110 virtual void PostMainMessageLoopRun() OVERRIDE; | 111 virtual void PostMainMessageLoopRun() OVERRIDE; |
| 111 virtual void PostDestroyThreads() OVERRIDE; | 112 virtual void PostDestroyThreads() OVERRIDE; |
| 112 | 113 |
| 113 protected: | 114 protected: |
| 114 // This is the thread that runs all the UrlRequest tests. | 115 // This is the thread that runs all the UrlRequest tests. |
| (...skipping 14 matching lines...) Expand all Loading... |
| 129 // The fake chrome instance. | 130 // The fake chrome instance. |
| 130 scoped_ptr<FakeExternalTab> fake_chrome_; | 131 scoped_ptr<FakeExternalTab> fake_chrome_; |
| 131 scoped_ptr<ProcessSingletonSubclass> pss_subclass_; | 132 scoped_ptr<ProcessSingletonSubclass> pss_subclass_; |
| 132 ScopedChromeFrameRegistrar registrar_; | 133 ScopedChromeFrameRegistrar registrar_; |
| 133 int test_result_; | 134 int test_result_; |
| 134 | 135 |
| 135 DISALLOW_COPY_AND_ASSIGN(CFUrlRequestUnittestRunner); | 136 DISALLOW_COPY_AND_ASSIGN(CFUrlRequestUnittestRunner); |
| 136 }; | 137 }; |
| 137 | 138 |
| 138 #endif // CHROME_FRAME_TEST_NET_FAKE_EXTERNAL_TAB_H_ | 139 #endif // CHROME_FRAME_TEST_NET_FAKE_EXTERNAL_TAB_H_ |
| OLD | NEW |