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

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

Issue 11636050: Eliminate ApiResourceEventNotifier. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years 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
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
deleted file mode 100644
index dc031fadb93fefb61f52c4ea2fef556989f0ae8f..0000000000000000000000000000000000000000
--- a/chrome/browser/extensions/api/api_resource_event_notifier.h
+++ /dev/null
@@ -1,66 +0,0 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef CHROME_BROWSER_EXTENSIONS_API_API_RESOURCE_EVENT_NOTIFIER_H_
-#define CHROME_BROWSER_EXTENSIONS_API_API_RESOURCE_EVENT_NOTIFIER_H_
-
-#include <string>
-
-#include "base/basictypes.h"
-#include "base/memory/ref_counted.h"
-#include "base/values.h"
-#include "chrome/browser/usb/usb_device.h"
-#include "googleurl/src/gurl.h"
-
-class Profile;
-
-namespace base {
-class ListValue;
-}
-
-namespace extensions {
-class EventRouter;
-
-enum ApiResourceEventType {
-};
-
-extern const char kSrcIdKey[];
-
-// ApiResourceEventNotifier knows how to send an event to a specific app's
-// onEvent handler.
-class ApiResourceEventNotifier
- : public base::RefCountedThreadSafe<ApiResourceEventNotifier> {
- public:
- ApiResourceEventNotifier(EventRouter* router, Profile* profile,
- const std::string& src_extension_id, int src_id,
- const GURL& src_url);
-
- 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;
-
- virtual ~ApiResourceEventNotifier();
-
- void DispatchEvent(const std::string& event_name, DictionaryValue* args);
- void DispatchEventOnUIThread(const std::string& event_name,
- DictionaryValue* args);
- DictionaryValue* CreateApiResourceEvent(ApiResourceEventType event_type);
-
- EventRouter* router_;
- Profile* profile_;
- std::string src_extension_id_;
- int src_id_;
- GURL src_url_;
-
- DISALLOW_COPY_AND_ASSIGN(ApiResourceEventNotifier);
-};
-
-} // namespace extensions
-
-#endif // CHROME_BROWSER_EXTENSIONS_API_API_RESOURCE_EVENT_NOTIFIER_H_
« no previous file with comments | « chrome/browser/extensions/api/api_resource.cc ('k') | chrome/browser/extensions/api/api_resource_event_notifier.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698