| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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_ |
| OLD | NEW |