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

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

Issue 2276293002: Revert of Add ARC++ specific fields to launch data for specific apps. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
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_H_ 5 #ifndef COMPONENTS_ARC_ARC_BRIDGE_SERVICE_H_
6 #define COMPONENTS_ARC_ARC_BRIDGE_SERVICE_H_ 6 #define COMPONENTS_ARC_ARC_BRIDGE_SERVICE_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 virtual ~ArcBridgeService(); 60 virtual ~ArcBridgeService();
61 61
62 // Gets the global instance of the ARC Bridge Service. This can only be 62 // Gets the global instance of the ARC Bridge Service. This can only be
63 // called on the thread that this class was created on. 63 // called on the thread that this class was created on.
64 static ArcBridgeService* Get(); 64 static ArcBridgeService* Get();
65 65
66 // Return true if ARC has been enabled through a commandline 66 // Return true if ARC has been enabled through a commandline
67 // switch. 67 // switch.
68 static bool GetEnabled(const base::CommandLine* command_line); 68 static bool GetEnabled(const base::CommandLine* command_line);
69 69
70 // Return true if ARC is available on the current board.
71 static bool GetAvailable(const base::CommandLine* command_line);
72
73 // HandleStartup() should be called upon profile startup. This will only 70 // HandleStartup() should be called upon profile startup. This will only
74 // launch an instance if the instance is enabled. 71 // launch an instance if the instance is enabled.
75 // This can only be called on the thread that this class was created on. 72 // This can only be called on the thread that this class was created on.
76 virtual void HandleStartup() = 0; 73 virtual void HandleStartup() = 0;
77 74
78 // Shutdown() should be called when the browser is shutting down. This can 75 // Shutdown() should be called when the browser is shutting down. This can
79 // only be called on the thread that this class was created on. 76 // only be called on the thread that this class was created on.
80 virtual void Shutdown() = 0; 77 virtual void Shutdown() = 0;
81 78
82 // Adds or removes observers. This can only be called on the thread that this 79 // Adds or removes observers. This can only be called on the thread that this
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
224 221
225 // WeakPtrFactory to use callbacks. 222 // WeakPtrFactory to use callbacks.
226 base::WeakPtrFactory<ArcBridgeService> weak_factory_; 223 base::WeakPtrFactory<ArcBridgeService> weak_factory_;
227 224
228 DISALLOW_COPY_AND_ASSIGN(ArcBridgeService); 225 DISALLOW_COPY_AND_ASSIGN(ArcBridgeService);
229 }; 226 };
230 227
231 } // namespace arc 228 } // namespace arc
232 229
233 #endif // COMPONENTS_ARC_ARC_BRIDGE_SERVICE_H_ 230 #endif // COMPONENTS_ARC_ARC_BRIDGE_SERVICE_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/extensions/application_launch.cc ('k') | components/arc/arc_bridge_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698