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

Side by Side 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_EXTENSIONS_API_STREAMS_PRIVATE_STREAMS_PRIVATE_API_H_
6 #define CHROME_BROWSER_EXTENSIONS_API_STREAMS_PRIVATE_STREAMS_PRIVATE_API_H_
7
8 #include <map>
9 #include <string>
10 #include <vector>
11
12 #include "base/values.h"
13 #include "chrome/browser/extensions/api/profile_keyed_api_factory.h"
14 #include "chrome/browser/extensions/extension_function.h"
15 #include "chrome/browser/profiles/profile_keyed_service.h"
16 #include "chrome/common/extensions/extension.h"
17 #include "content/public/browser/notification_observer.h"
18 #include "content/public/browser/notification_registrar.h"
19
20 class Profile;
21
22 namespace extensions {
23
24 class StreamsPrivateAPI : public ProfileKeyedAPI {
25 public:
26 explicit StreamsPrivateAPI(Profile* profile);
27 virtual ~StreamsPrivateAPI();
28
29 // ProfileKeyedAPI implementation.
30 static ProfileKeyedAPIFactory<StreamsPrivateAPI>* GetFactoryInstance();
31
32 private:
33 friend class ProfileKeyedAPIFactory<StreamsPrivateAPI>;
34
35 // ProfileKeyedAPI implementation.
36 static const char* service_name() {
37 return "StreamsPrivateAPI";
38 }
39 static const bool kServiceIsNULLWhileTesting = true;
40
41 Profile* const profile_;
42 };
43
44 } // namespace extensions
45
46 #endif // CHROME_BROWSER_EXTENSIONS_API_STREAMS_PRIVATE_STREAMS_PRIVATE_API_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698