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

Unified Diff: chrome/browser/extensions/api/api_resource_event_notifier.h

Issue 10919201: Make sure that a given app/extension requests only its own resources. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Improve tests; fix merge conflicts. Created 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/extensions/api/api_resource.cc ('k') | chrome/browser/extensions/api/api_resource_manager.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/api/api_resource_event_notifier.h
diff --git a/chrome/browser/extensions/api/api_resource_event_notifier.h b/chrome/browser/extensions/api/api_resource_event_notifier.h
index f9876632e68b683fc4e6427bac4a9d7d11026949..1a98a4afa1f8fd944a7c32444901201921d6da64 100644
--- a/chrome/browser/extensions/api/api_resource_event_notifier.h
+++ b/chrome/browser/extensions/api/api_resource_event_notifier.h
@@ -33,8 +33,7 @@ extern const char kSrcIdKey[];
class ApiResourceEventNotifier
: public base::RefCountedThreadSafe<ApiResourceEventNotifier> {
public:
- ApiResourceEventNotifier(EventRouter* router,
- Profile* profile,
+ ApiResourceEventNotifier(EventRouter* router, Profile* profile,
const std::string& src_extension_id, int src_id,
const GURL& src_url);
@@ -45,6 +44,8 @@ class ApiResourceEventNotifier
static std::string ApiResourceEventTypeToString(
ApiResourceEventType event_type);
+ const std::string& src_extension_id() const { return src_extension_id_; }
+
private:
friend class base::RefCountedThreadSafe<ApiResourceEventNotifier>;
friend class MockApiResourceEventNotifier;
« no previous file with comments | « chrome/browser/extensions/api/api_resource.cc ('k') | chrome/browser/extensions/api/api_resource_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698