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

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

Issue 1354623002: Force offline by default for warm benchmarks. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 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 | « mojo/devtools/common/mojo_benchmark ('k') | shell/application_manager/application_manager.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 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/macros.h" 10 #include "base/macros.h"
(...skipping 17 matching lines...) Expand all
28 } 28 }
29 29
30 namespace shell { 30 namespace shell {
31 31
32 class Fetcher; 32 class Fetcher;
33 class ShellImpl; 33 class ShellImpl;
34 34
35 class ApplicationManager { 35 class ApplicationManager {
36 public: 36 public:
37 struct Options { 37 struct Options {
38 Options() : disable_cache(false) {} 38 Options() : disable_cache(false), force_offline_by_default(false) {}
39 39
40 bool disable_cache; 40 bool disable_cache;
41 bool force_offline_by_default;
41 }; 42 };
42 43
43 class Delegate { 44 class Delegate {
44 public: 45 public:
45 // Gives the delegate a chance to apply any mappings for the specified url. 46 // Gives the delegate a chance to apply any mappings for the specified url.
46 // This should not resolve 'mojo' urls, that is done by ResolveMojoURL(). 47 // This should not resolve 'mojo' urls, that is done by ResolveMojoURL().
47 virtual GURL ResolveMappings(const GURL& url) = 0; 48 virtual GURL ResolveMappings(const GURL& url) = 0;
48 49
49 // Used to map a url with the scheme 'mojo' to the appropriate url. Return 50 // Used to map a url with the scheme 'mojo' to the appropriate url. Return
50 // |url| if the scheme is not 'mojo'. 51 // |url| if the scheme is not 'mojo'.
(...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after
245 ScopedVector<NativeRunner> native_runners_; 246 ScopedVector<NativeRunner> native_runners_;
246 bool initialized_authentication_interceptor_; 247 bool initialized_authentication_interceptor_;
247 base::WeakPtrFactory<ApplicationManager> weak_ptr_factory_; 248 base::WeakPtrFactory<ApplicationManager> weak_ptr_factory_;
248 249
249 DISALLOW_COPY_AND_ASSIGN(ApplicationManager); 250 DISALLOW_COPY_AND_ASSIGN(ApplicationManager);
250 }; 251 };
251 252
252 } // namespace shell 253 } // namespace shell
253 254
254 #endif // SHELL_APPLICATION_MANAGER_APPLICATION_MANAGER_H_ 255 #endif // SHELL_APPLICATION_MANAGER_APPLICATION_MANAGER_H_
OLDNEW
« no previous file with comments | « mojo/devtools/common/mojo_benchmark ('k') | shell/application_manager/application_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698