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

Side by Side Diff: apps/shell/browser/shell_extension_system.h

Issue 266963003: Beginning of support for extension content verification (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merged latest trunk Created 6 years, 7 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | apps/shell/browser/shell_extension_system.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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 APPS_SHELL_BROWSER_SHELL_EXTENSION_SYSTEM_H_ 5 #ifndef APPS_SHELL_BROWSER_SHELL_EXTENSION_SYSTEM_H_
6 #define APPS_SHELL_BROWSER_SHELL_EXTENSION_SYSTEM_H_ 6 #define APPS_SHELL_BROWSER_SHELL_EXTENSION_SYSTEM_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 virtual Blacklist* blacklist() OVERRIDE; 60 virtual Blacklist* blacklist() OVERRIDE;
61 virtual ErrorConsole* error_console() OVERRIDE; 61 virtual ErrorConsole* error_console() OVERRIDE;
62 virtual InstallVerifier* install_verifier() OVERRIDE; 62 virtual InstallVerifier* install_verifier() OVERRIDE;
63 virtual QuotaService* quota_service() OVERRIDE; 63 virtual QuotaService* quota_service() OVERRIDE;
64 virtual void RegisterExtensionWithRequestContexts( 64 virtual void RegisterExtensionWithRequestContexts(
65 const Extension* extension) OVERRIDE; 65 const Extension* extension) OVERRIDE;
66 virtual void UnregisterExtensionWithRequestContexts( 66 virtual void UnregisterExtensionWithRequestContexts(
67 const std::string& extension_id, 67 const std::string& extension_id,
68 const UnloadedExtensionInfo::Reason reason) OVERRIDE; 68 const UnloadedExtensionInfo::Reason reason) OVERRIDE;
69 virtual const OneShotEvent& ready() const OVERRIDE; 69 virtual const OneShotEvent& ready() const OVERRIDE;
70 virtual ContentVerifier* content_verifier() OVERRIDE;
70 71
71 private: 72 private:
72 content::BrowserContext* browser_context_; // Not owned. 73 content::BrowserContext* browser_context_; // Not owned.
73 74
74 // Extension ID for the app. 75 // Extension ID for the app.
75 std::string app_id_; 76 std::string app_id_;
76 77
77 // Data to be accessed on the IO thread. Must outlive process_manager_. 78 // Data to be accessed on the IO thread. Must outlive process_manager_.
78 scoped_refptr<InfoMap> info_map_; 79 scoped_refptr<InfoMap> info_map_;
79 80
80 scoped_ptr<RuntimeData> runtime_data_; 81 scoped_ptr<RuntimeData> runtime_data_;
81 scoped_ptr<LazyBackgroundTaskQueue> lazy_background_task_queue_; 82 scoped_ptr<LazyBackgroundTaskQueue> lazy_background_task_queue_;
82 scoped_ptr<EventRouter> event_router_; 83 scoped_ptr<EventRouter> event_router_;
83 scoped_ptr<ProcessManager> process_manager_; 84 scoped_ptr<ProcessManager> process_manager_;
84 scoped_ptr<QuotaService> quota_service_; 85 scoped_ptr<QuotaService> quota_service_;
85 86
86 // Signaled when the extension system has completed its startup tasks. 87 // Signaled when the extension system has completed its startup tasks.
87 OneShotEvent ready_; 88 OneShotEvent ready_;
88 89
89 DISALLOW_COPY_AND_ASSIGN(ShellExtensionSystem); 90 DISALLOW_COPY_AND_ASSIGN(ShellExtensionSystem);
90 }; 91 };
91 92
92 } // namespace extensions 93 } // namespace extensions
93 94
94 #endif // APPS_SHELL_BROWSER_SHELL_EXTENSION_SYSTEM_H_ 95 #endif // APPS_SHELL_BROWSER_SHELL_EXTENSION_SYSTEM_H_
OLDNEW
« no previous file with comments | « no previous file | apps/shell/browser/shell_extension_system.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698