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

Side by Side Diff: chrome/browser/extensions/api/content_scripts/content_scripts_api.h

Issue 11724002: Move ContentScripts out of Extension (Closed) Base URL: http://git.chromium.org/chromium/src.git@dc_unref_browser_action
Patch Set: Created 7 years, 11 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_CONTENT_SCRIPTS_CONTENT_SCRIPTS_API_H_
6 #define CHROME_BROWSER_EXTENSIONS_API_CONTENT_SCRIPTS_CONTENT_SCRIPTS_API_H_
7
8 #include "chrome/browser/extensions/api/profile_keyed_api_factory.h"
9 #include "chrome/browser/profiles/profile_keyed_service.h"
10
11 class Profile;
12
13 namespace extensions {
14
15 // The profile-keyed service that manages the content scripts API.
16 class ContentScriptsAPI : public ProfileKeyedAPI {
17 public:
18 explicit ContentScriptsAPI(Profile* profile);
19 virtual ~ContentScriptsAPI();
20
21 private:
22 friend class ProfileKeyedAPIFactory<ContentScriptsAPI>;
23
24 // ProfileKeyedAPI implementation.
25 static const char* service_name() {
26 return "ContentScriptsAPI";
27 }
28 };
29
30 template <>
31 ProfileKeyedAPIFactory<ContentScriptsAPI>*
32 ProfileKeyedAPIFactory<ContentScriptsAPI>::GetInstance();
33
34 } // namespace extensions
35
36 #endif // CHROME_BROWSER_EXTENSIONS_API_CONTENT_SCRIPTS_CONTENT_SCRIPTS_API_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698