| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 BLIMP_CLIENT_CORE_BLIMP_CLIENT_CONTEXT_IMPL_H_ | 5 #ifndef BLIMP_CLIENT_CORE_BLIMP_CLIENT_CONTEXT_IMPL_H_ |
| 6 #define BLIMP_CLIENT_CORE_BLIMP_CLIENT_CONTEXT_IMPL_H_ | 6 #define BLIMP_CLIENT_CORE_BLIMP_CLIENT_CONTEXT_IMPL_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| (...skipping 27 matching lines...) Expand all Loading... |
| 38 // operations. | 38 // operations. |
| 39 // The |file_thread_task_runner| must be the task runner to use for file | 39 // The |file_thread_task_runner| must be the task runner to use for file |
| 40 // operations. | 40 // operations. |
| 41 BlimpClientContextImpl( | 41 BlimpClientContextImpl( |
| 42 scoped_refptr<base::SingleThreadTaskRunner> io_thread_task_runner, | 42 scoped_refptr<base::SingleThreadTaskRunner> io_thread_task_runner, |
| 43 scoped_refptr<base::SingleThreadTaskRunner> file_thread_task_runner); | 43 scoped_refptr<base::SingleThreadTaskRunner> file_thread_task_runner); |
| 44 ~BlimpClientContextImpl() override; | 44 ~BlimpClientContextImpl() override; |
| 45 | 45 |
| 46 // BlimpClientContext implementation. | 46 // BlimpClientContext implementation. |
| 47 void SetDelegate(BlimpClientContextDelegate* delegate) override; | 47 void SetDelegate(BlimpClientContextDelegate* delegate) override; |
| 48 std::unique_ptr<BlimpContents> CreateBlimpContents() override; | 48 std::unique_ptr<BlimpContents> CreateBlimpContents( |
| 49 gfx::NativeWindow window) override; |
| 49 void Connect() override; | 50 void Connect() override; |
| 50 | 51 |
| 51 // NetworkEventObserver implementation. | 52 // NetworkEventObserver implementation. |
| 52 void OnConnected() override; | 53 void OnConnected() override; |
| 53 void OnDisconnected(int result) override; | 54 void OnDisconnected(int result) override; |
| 54 | 55 |
| 55 TabControlFeature* GetTabControlFeature() const; | 56 TabControlFeature* GetTabControlFeature() const; |
| 56 | 57 |
| 57 protected: | 58 protected: |
| 58 // Returns the URL to use for connections to the assigner. Used to construct | 59 // Returns the URL to use for connections to the assigner. Used to construct |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 101 | 102 |
| 102 base::WeakPtrFactory<BlimpClientContextImpl> weak_factory_; | 103 base::WeakPtrFactory<BlimpClientContextImpl> weak_factory_; |
| 103 | 104 |
| 104 DISALLOW_COPY_AND_ASSIGN(BlimpClientContextImpl); | 105 DISALLOW_COPY_AND_ASSIGN(BlimpClientContextImpl); |
| 105 }; | 106 }; |
| 106 | 107 |
| 107 } // namespace client | 108 } // namespace client |
| 108 } // namespace blimp | 109 } // namespace blimp |
| 109 | 110 |
| 110 #endif // BLIMP_CLIENT_CORE_BLIMP_CLIENT_CONTEXT_IMPL_H_ | 111 #endif // BLIMP_CLIENT_CORE_BLIMP_CLIENT_CONTEXT_IMPL_H_ |
| OLD | NEW |