Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(76)

Side by Side Diff: blimp/client/core/blimp_client_context_impl.h

Issue 2249283003: Hooks together Geolocation Feature in the Client and Engine. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@lai
Patch Set: Put TestingLocationArbitrator out of anonymous namespace. Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « blimp/client/core/BUILD.gn ('k') | blimp/client/core/blimp_client_context_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 #include <string>
9 10
10 #include "base/macros.h" 11 #include "base/macros.h"
11 #include "base/memory/ref_counted.h" 12 #include "base/memory/ref_counted.h"
12 #include "base/memory/weak_ptr.h" 13 #include "base/memory/weak_ptr.h"
13 #include "base/single_thread_task_runner.h" 14 #include "base/single_thread_task_runner.h"
14 #include "base/threading/thread.h" 15 #include "base/threading/thread.h"
15 #include "blimp/client/core/session/client_network_components.h" 16 #include "blimp/client/core/session/client_network_components.h"
16 #include "blimp/client/core/session/identity_source.h" 17 #include "blimp/client/core/session/identity_source.h"
17 #include "blimp/client/core/session/network_event_observer.h" 18 #include "blimp/client/core/session/network_event_observer.h"
18 #include "blimp/client/public/blimp_client_context.h" 19 #include "blimp/client/public/blimp_client_context.h"
19 #include "blimp/client/public/contents/blimp_contents.h" 20 #include "blimp/client/public/contents/blimp_contents.h"
20 #include "blimp/client/public/session/assignment.h" 21 #include "blimp/client/public/session/assignment.h"
21 #include "blimp/net/thread_pipe_manager.h" 22 #include "blimp/net/thread_pipe_manager.h"
22 #include "url/gurl.h" 23 #include "url/gurl.h"
23 24
24 namespace blimp { 25 namespace blimp {
25 namespace client { 26 namespace client {
26 27
27 class BlimpCompositorDependencies; 28 class BlimpCompositorDependencies;
28 class BlimpContentsManager; 29 class BlimpContentsManager;
29 class CompositorDependencies; 30 class CompositorDependencies;
31 class GeolocationFeature;
30 class ImeFeature; 32 class ImeFeature;
31 class NavigationFeature; 33 class NavigationFeature;
32 class RenderWidgetFeature; 34 class RenderWidgetFeature;
33 class SettingsFeature; 35 class SettingsFeature;
34 class TabControlFeature; 36 class TabControlFeature;
35 37
36 // BlimpClientContextImpl is the implementation of the main context-class for 38 // BlimpClientContextImpl is the implementation of the main context-class for
37 // the blimp client. 39 // the blimp client.
38 class BlimpClientContextImpl : public BlimpClientContext, 40 class BlimpClientContextImpl : public BlimpClientContext,
39 public NetworkEventObserver { 41 public NetworkEventObserver {
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 scoped_refptr<base::SingleThreadTaskRunner> file_thread_task_runner_; 93 scoped_refptr<base::SingleThreadTaskRunner> file_thread_task_runner_;
92 94
93 // The AssignmentSource is used when the user of BlimpClientContextImpl calls 95 // The AssignmentSource is used when the user of BlimpClientContextImpl calls
94 // Connect() to get a valid assignment and later connect to the engine. 96 // Connect() to get a valid assignment and later connect to the engine.
95 std::unique_ptr<AssignmentSource> assignment_source_; 97 std::unique_ptr<AssignmentSource> assignment_source_;
96 98
97 // A set of dependencies required by all BlimpCompositor instances. 99 // A set of dependencies required by all BlimpCompositor instances.
98 std::unique_ptr<BlimpCompositorDependencies> blimp_compositor_dependencies_; 100 std::unique_ptr<BlimpCompositorDependencies> blimp_compositor_dependencies_;
99 101
100 // Features to handle all incoming and outgoing protobuf messages. 102 // Features to handle all incoming and outgoing protobuf messages.
103 std::unique_ptr<GeolocationFeature> geolocation_feature_;
101 std::unique_ptr<ImeFeature> ime_feature_; 104 std::unique_ptr<ImeFeature> ime_feature_;
102 std::unique_ptr<NavigationFeature> navigation_feature_; 105 std::unique_ptr<NavigationFeature> navigation_feature_;
103 std::unique_ptr<RenderWidgetFeature> render_widget_feature_; 106 std::unique_ptr<RenderWidgetFeature> render_widget_feature_;
104 std::unique_ptr<SettingsFeature> settings_feature_; 107 std::unique_ptr<SettingsFeature> settings_feature_;
105 std::unique_ptr<TabControlFeature> tab_control_feature_; 108 std::unique_ptr<TabControlFeature> tab_control_feature_;
106 109
107 std::unique_ptr<BlimpContentsManager> blimp_contents_manager_; 110 std::unique_ptr<BlimpContentsManager> blimp_contents_manager_;
108 111
109 // Container struct for network components. 112 // Container struct for network components.
110 // Must be deleted on the IO thread. 113 // Must be deleted on the IO thread.
111 std::unique_ptr<ClientNetworkComponents> net_components_; 114 std::unique_ptr<ClientNetworkComponents> net_components_;
112 115
113 std::unique_ptr<ThreadPipeManager> thread_pipe_manager_; 116 std::unique_ptr<ThreadPipeManager> thread_pipe_manager_;
114 117
115 // Provide OAuth2 token and propagate account sign in states change. 118 // Provide OAuth2 token and propagate account sign in states change.
116 std::unique_ptr<IdentitySource> identity_source_; 119 std::unique_ptr<IdentitySource> identity_source_;
117 120
118 base::WeakPtrFactory<BlimpClientContextImpl> weak_factory_; 121 base::WeakPtrFactory<BlimpClientContextImpl> weak_factory_;
119 122
120 DISALLOW_COPY_AND_ASSIGN(BlimpClientContextImpl); 123 DISALLOW_COPY_AND_ASSIGN(BlimpClientContextImpl);
121 }; 124 };
122 125
123 } // namespace client 126 } // namespace client
124 } // namespace blimp 127 } // namespace blimp
125 128
126 #endif // BLIMP_CLIENT_CORE_BLIMP_CLIENT_CONTEXT_IMPL_H_ 129 #endif // BLIMP_CLIENT_CORE_BLIMP_CLIENT_CONTEXT_IMPL_H_
OLDNEW
« no previous file with comments | « blimp/client/core/BUILD.gn ('k') | blimp/client/core/blimp_client_context_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698