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

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

Issue 2258563003: Added features to BlimpClientContext and BlimpContents (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@ime_feature_move
Patch Set: Created 4 years, 4 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
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 9
10 #include "base/macros.h" 10 #include "base/macros.h"
11 #include "base/memory/ref_counted.h" 11 #include "base/memory/ref_counted.h"
12 #include "base/memory/weak_ptr.h" 12 #include "base/memory/weak_ptr.h"
13 #include "base/single_thread_task_runner.h" 13 #include "base/single_thread_task_runner.h"
14 #include "base/threading/thread.h" 14 #include "base/threading/thread.h"
15 #include "blimp/client/core/session/client_network_components.h" 15 #include "blimp/client/core/session/client_network_components.h"
16 #include "blimp/client/core/session/network_event_observer.h" 16 #include "blimp/client/core/session/network_event_observer.h"
17 #include "blimp/client/public/blimp_client_context.h" 17 #include "blimp/client/public/blimp_client_context.h"
18 #include "blimp/client/public/contents/blimp_contents.h" 18 #include "blimp/client/public/contents/blimp_contents.h"
19 #include "blimp/client/public/session/assignment.h" 19 #include "blimp/client/public/session/assignment.h"
20 #include "blimp/net/blimp_connection_statistics.h" 20 #include "blimp/net/blimp_connection_statistics.h"
21 #include "blimp/net/thread_pipe_manager.h" 21 #include "blimp/net/thread_pipe_manager.h"
22 #include "url/gurl.h" 22 #include "url/gurl.h"
23 23
24 namespace blimp { 24 namespace blimp {
25 namespace client { 25 namespace client {
26 26
27 class BlimpContentsManager; 27 class BlimpContentsManager;
28 class ImeFeature;
29 class NavigationFeature;
28 30
29 // BlimpClientContextImpl is the implementation of the main context-class for 31 // BlimpClientContextImpl is the implementation of the main context-class for
30 // the blimp client. 32 // the blimp client.
31 class BlimpClientContextImpl : public BlimpClientContext, 33 class BlimpClientContextImpl : public BlimpClientContext,
32 public NetworkEventObserver { 34 public NetworkEventObserver {
33 public: 35 public:
34 // The |io_thread_task_runner| must be the task runner to use for IO 36 // The |io_thread_task_runner| must be the task runner to use for IO
35 // operations. 37 // operations.
36 // The |file_thread_task_runner| must be the task runner to use for file 38 // The |file_thread_task_runner| must be the task runner to use for file
37 // operations. 39 // operations.
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 BlimpConnectionStatistics* blimp_connection_statistics_; 80 BlimpConnectionStatistics* blimp_connection_statistics_;
79 81
80 std::unique_ptr<BlimpContentsManager> blimp_contents_manager_; 82 std::unique_ptr<BlimpContentsManager> blimp_contents_manager_;
81 83
82 // Container struct for network components. 84 // Container struct for network components.
83 // Must be deleted on the IO thread. 85 // Must be deleted on the IO thread.
84 std::unique_ptr<ClientNetworkComponents> net_components_; 86 std::unique_ptr<ClientNetworkComponents> net_components_;
85 87
86 std::unique_ptr<ThreadPipeManager> thread_pipe_manager_; 88 std::unique_ptr<ThreadPipeManager> thread_pipe_manager_;
87 89
90 // Features to handle all incoming and outgoing protobuf messages.
91 std::unique_ptr<NavigationFeature> navigation_feature_;
92 std::unique_ptr<ImeFeature> ime_feature_;
93
88 base::WeakPtrFactory<BlimpClientContextImpl> weak_factory_; 94 base::WeakPtrFactory<BlimpClientContextImpl> weak_factory_;
89 95
90 DISALLOW_COPY_AND_ASSIGN(BlimpClientContextImpl); 96 DISALLOW_COPY_AND_ASSIGN(BlimpClientContextImpl);
91 }; 97 };
92 98
93 } // namespace client 99 } // namespace client
94 } // namespace blimp 100 } // namespace blimp
95 101
96 #endif // BLIMP_CLIENT_CORE_BLIMP_CLIENT_CONTEXT_IMPL_H_ 102 #endif // BLIMP_CLIENT_CORE_BLIMP_CLIENT_CONTEXT_IMPL_H_
OLDNEW
« no previous file with comments | « no previous file | blimp/client/core/blimp_client_context_impl.cc » ('j') | blimp/client/core/blimp_client_context_impl.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698