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

Side by Side Diff: chrome/browser/extensions/api/declarative_content/content_action.h

Issue 493633003: Browser changes for wiring up RequestContentScript API to shared memory (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix nit: Inline methods in unit tests Created 6 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_EXTENSIONS_API_DECLARATIVE_CONTENT_CONTENT_ACTION_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_DECLARATIVE_CONTENT_CONTENT_ACTION_H_
6 #define CHROME_BROWSER_EXTENSIONS_API_DECLARATIVE_CONTENT_CONTENT_ACTION_H_ 6 #define CHROME_BROWSER_EXTENSIONS_API_DECLARATIVE_CONTENT_CONTENT_ACTION_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 virtual void Revert(const std::string& extension_id, 56 virtual void Revert(const std::string& extension_id,
57 const base::Time& extension_install_time, 57 const base::Time& extension_install_time,
58 ApplyInfo* apply_info) const = 0; 58 ApplyInfo* apply_info) const = 0;
59 59
60 // Factory method that instantiates a concrete ContentAction 60 // Factory method that instantiates a concrete ContentAction
61 // implementation according to |json_action|, the representation of the 61 // implementation according to |json_action|, the representation of the
62 // ContentAction as received from the extension API. 62 // ContentAction as received from the extension API.
63 // Sets |error| and returns NULL in case of a semantic error that cannot 63 // Sets |error| and returns NULL in case of a semantic error that cannot
64 // be caught by schema validation. Sets |bad_message| and returns NULL 64 // be caught by schema validation. Sets |bad_message| and returns NULL
65 // in case the input is syntactically unexpected. 65 // in case the input is syntactically unexpected.
66 static scoped_refptr<ContentAction> Create(const Extension* extension, 66 static scoped_refptr<ContentAction> Create(
67 const base::Value& json_action, 67 content::BrowserContext* browser_context,
68 std::string* error, 68 const Extension* extension,
69 bool* bad_message); 69 const base::Value& json_action,
70 std::string* error,
71 bool* bad_message);
70 72
71 protected: 73 protected:
72 friend class base::RefCounted<ContentAction>; 74 friend class base::RefCounted<ContentAction>;
73 virtual ~ContentAction(); 75 virtual ~ContentAction();
74 }; 76 };
75 77
76 typedef DeclarativeActionSet<ContentAction> ContentActionSet; 78 typedef DeclarativeActionSet<ContentAction> ContentActionSet;
77 79
78 } // namespace extensions 80 } // namespace extensions
79 81
80 #endif // CHROME_BROWSER_EXTENSIONS_API_DECLARATIVE_CONTENT_CONTENT_ACTION_H_ 82 #endif // CHROME_BROWSER_EXTENSIONS_API_DECLARATIVE_CONTENT_CONTENT_ACTION_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698