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

Side by Side Diff: shell/application_manager/application_manager.h

Issue 972433004: Use the mojo::shell namespace consistently underly shell/. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Java! Created 5 years, 9 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 SHELL_APPLICATION_MANAGER_APPLICATION_MANAGER_H_ 5 #ifndef SHELL_APPLICATION_MANAGER_APPLICATION_MANAGER_H_
6 #define SHELL_APPLICATION_MANAGER_APPLICATION_MANAGER_H_ 6 #define SHELL_APPLICATION_MANAGER_APPLICATION_MANAGER_H_
7 7
8 #include <map> 8 #include <map>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
11 #include "base/callback.h" 11 #include "base/callback.h"
12 #include "base/gtest_prod_util.h" 12 #include "base/gtest_prod_util.h"
13 #include "base/memory/scoped_ptr.h" 13 #include "base/memory/scoped_ptr.h"
14 #include "base/memory/scoped_vector.h" 14 #include "base/memory/scoped_vector.h"
15 #include "base/memory/weak_ptr.h" 15 #include "base/memory/weak_ptr.h"
16 #include "mojo/public/cpp/bindings/interface_request.h" 16 #include "mojo/public/cpp/bindings/interface_request.h"
17 #include "mojo/public/interfaces/application/service_provider.mojom.h" 17 #include "mojo/public/interfaces/application/service_provider.mojom.h"
18 #include "mojo/services/network/public/interfaces/network_service.mojom.h" 18 #include "mojo/services/network/public/interfaces/network_service.mojom.h"
19 #include "shell/application_manager/application_loader.h" 19 #include "shell/application_manager/application_loader.h"
20 #include "shell/application_manager/fetcher.h" 20 #include "shell/application_manager/fetcher.h"
21 #include "shell/application_manager/shell_impl.h" 21 #include "shell/application_manager/shell_impl.h"
22 #include "url/gurl.h" 22 #include "url/gurl.h"
23 23
24 namespace base { 24 namespace base {
25 class FilePath; 25 class FilePath;
26 class SequencedWorkerPool; 26 class SequencedWorkerPool;
27 } 27 }
28 28
29 namespace mojo { 29 namespace mojo {
30 namespace shell {
30 31
31 // ApplicationManager requires implementations of NativeRunner and 32 // ApplicationManager requires implementations of NativeRunner and
32 // NativeRunnerFactory to run native applications. 33 // NativeRunnerFactory to run native applications.
33 class NativeRunner { 34 class NativeRunner {
34 public: 35 public:
35 // Parameter for |Start()| to specify its cleanup behavior. 36 // Parameter for |Start()| to specify its cleanup behavior.
36 enum CleanupBehavior { DeleteAppPath, DontDeleteAppPath }; 37 enum CleanupBehavior { DeleteAppPath, DontDeleteAppPath };
37 38
38 virtual ~NativeRunner() {} 39 virtual ~NativeRunner() {}
39 40
(...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after
253 254
254 base::SequencedWorkerPool* blocking_pool_; 255 base::SequencedWorkerPool* blocking_pool_;
255 NetworkServicePtr network_service_; 256 NetworkServicePtr network_service_;
256 MimeTypeToURLMap mime_type_to_url_; 257 MimeTypeToURLMap mime_type_to_url_;
257 ScopedVector<NativeRunner> native_runners_; 258 ScopedVector<NativeRunner> native_runners_;
258 bool disable_cache_; 259 bool disable_cache_;
259 260
260 DISALLOW_COPY_AND_ASSIGN(ApplicationManager); 261 DISALLOW_COPY_AND_ASSIGN(ApplicationManager);
261 }; 262 };
262 263
264 } // namespace shell
263 } // namespace mojo 265 } // namespace mojo
264 266
265 #endif // SHELL_APPLICATION_MANAGER_APPLICATION_MANAGER_H_ 267 #endif // SHELL_APPLICATION_MANAGER_APPLICATION_MANAGER_H_
OLDNEW
« no previous file with comments | « shell/application_manager/application_loader.h ('k') | shell/application_manager/application_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698