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

Side by Side Diff: components/arc/arc_bridge_service_impl.h

Issue 2511973004: components: Cleanup class/struct fwd declarations (Closed)
Patch Set: Rebase on top of current master branch Created 4 years 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 COMPONENTS_ARC_ARC_BRIDGE_SERVICE_IMPL_H_ 5 #ifndef COMPONENTS_ARC_ARC_BRIDGE_SERVICE_IMPL_H_
6 #define COMPONENTS_ARC_ARC_BRIDGE_SERVICE_IMPL_H_ 6 #define COMPONENTS_ARC_ARC_BRIDGE_SERVICE_IMPL_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
11 11
12 #include "base/files/scoped_file.h" 12 #include "base/files/scoped_file.h"
13 #include "base/gtest_prod_util.h" 13 #include "base/gtest_prod_util.h"
14 #include "base/macros.h" 14 #include "base/macros.h"
15 #include "base/memory/ref_counted.h" 15 #include "base/memory/ref_counted.h"
16 #include "base/task_runner.h" 16 #include "base/task_runner.h"
17 #include "components/arc/arc_bridge_service.h" 17 #include "components/arc/arc_bridge_service.h"
18 #include "components/arc/arc_session.h" 18 #include "components/arc/arc_session.h"
19 #include "mojo/public/cpp/bindings/binding.h" 19 #include "mojo/public/cpp/bindings/binding.h"
20 20
21 namespace base {
22 class SequencedTaskRunner;
23 class SingleThreadTaskRunner;
24 } // namespace base
25
26 namespace arc { 21 namespace arc {
27 22
28 // Real IPC based ArcBridgeService that is used in production. 23 // Real IPC based ArcBridgeService that is used in production.
29 class ArcBridgeServiceImpl : public ArcBridgeService, 24 class ArcBridgeServiceImpl : public ArcBridgeService,
30 public ArcSession::Observer { 25 public ArcSession::Observer {
31 public: 26 public:
32 // This is the factory interface to inject ArcSession instance 27 // This is the factory interface to inject ArcSession instance
33 // for testing purpose. 28 // for testing purpose.
34 using ArcSessionFactory = base::Callback<std::unique_ptr<ArcSession>()>; 29 using ArcSessionFactory = base::Callback<std::unique_ptr<ArcSession>()>;
35 30
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 83
89 // WeakPtrFactory to use callbacks. 84 // WeakPtrFactory to use callbacks.
90 base::WeakPtrFactory<ArcBridgeServiceImpl> weak_factory_; 85 base::WeakPtrFactory<ArcBridgeServiceImpl> weak_factory_;
91 86
92 DISALLOW_COPY_AND_ASSIGN(ArcBridgeServiceImpl); 87 DISALLOW_COPY_AND_ASSIGN(ArcBridgeServiceImpl);
93 }; 88 };
94 89
95 } // namespace arc 90 } // namespace arc
96 91
97 #endif // COMPONENTS_ARC_ARC_BRIDGE_SERVICE_IMPL_H_ 92 #endif // COMPONENTS_ARC_ARC_BRIDGE_SERVICE_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698