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

Unified Diff: chrome/browser/extensions/api/streams_private/streams_private_api.h

Issue 12381035: Move Mime type handling to streamsPrivate API, so that it works on Desktop Chrome. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Initialize test variable Created 7 years, 9 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
Index: chrome/browser/extensions/api/streams_private/streams_private_api.h
diff --git a/chrome/browser/extensions/api/streams_private/streams_private_api.h b/chrome/browser/extensions/api/streams_private/streams_private_api.h
new file mode 100644
index 0000000000000000000000000000000000000000..36f560d1b9475a1d6be61283930e7ae396c88276
--- /dev/null
+++ b/chrome/browser/extensions/api/streams_private/streams_private_api.h
@@ -0,0 +1,46 @@
+// 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_STREAMS_PRIVATE_STREAMS_PRIVATE_API_H_
+#define CHROME_BROWSER_EXTENSIONS_API_STREAMS_PRIVATE_STREAMS_PRIVATE_API_H_
+
+#include <map>
+#include <string>
+#include <vector>
+
+#include "base/values.h"
+#include "chrome/browser/extensions/api/profile_keyed_api_factory.h"
+#include "chrome/browser/extensions/extension_function.h"
+#include "chrome/browser/profiles/profile_keyed_service.h"
+#include "chrome/common/extensions/extension.h"
+#include "content/public/browser/notification_observer.h"
+#include "content/public/browser/notification_registrar.h"
+
+class Profile;
+
+namespace extensions {
+
+class StreamsPrivateAPI : public ProfileKeyedAPI {
+ public:
+ explicit StreamsPrivateAPI(Profile* profile);
+ virtual ~StreamsPrivateAPI();
+
+ // ProfileKeyedAPI implementation.
+ static ProfileKeyedAPIFactory<StreamsPrivateAPI>* GetFactoryInstance();
+
+ private:
+ friend class ProfileKeyedAPIFactory<StreamsPrivateAPI>;
+
+ // ProfileKeyedAPI implementation.
+ static const char* service_name() {
+ return "StreamsPrivateAPI";
+ }
+ static const bool kServiceIsNULLWhileTesting = true;
+
+ Profile* const profile_;
+};
+
+} // namespace extensions
+
+#endif // CHROME_BROWSER_EXTENSIONS_API_STREAMS_PRIVATE_STREAMS_PRIVATE_API_H_

Powered by Google App Engine
This is Rietveld 408576698