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

Side by Side Diff: extensions/test/test_extensions_client.cc

Issue 1213623006: Extensions: Remove PermissionMessage (permission_message.h/cc) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@kill_getmessages
Patch Set: fix app_shell build, rebase Created 5 years, 4 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
« no previous file with comments | « extensions/test/test_extensions_client.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 #include "extensions/test/test_extensions_client.h" 5 #include "extensions/test/test_extensions_client.h"
6 6
7 #include "base/stl_util.h" 7 #include "base/stl_util.h"
8 #include "extensions/common/api/generated_schemas.h" 8 #include "extensions/common/api/generated_schemas.h"
9 #include "extensions/common/common_manifest_handlers.h" 9 #include "extensions/common/common_manifest_handlers.h"
10 #include "extensions/common/extension_urls.h" 10 #include "extensions/common/extension_urls.h"
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
111 } else { 111 } else {
112 NOTREACHED(); 112 NOTREACHED();
113 source.reset(); 113 source.reset();
114 } 114 }
115 return source.Pass(); 115 return source.Pass();
116 } 116 }
117 117
118 void TestExtensionsClient::FilterHostPermissions( 118 void TestExtensionsClient::FilterHostPermissions(
119 const URLPatternSet& hosts, 119 const URLPatternSet& hosts,
120 URLPatternSet* new_hosts, 120 URLPatternSet* new_hosts,
121 std::set<PermissionMessage>* messages) const {
122 }
123
124 void TestExtensionsClient::FilterHostPermissions(
125 const URLPatternSet& hosts,
126 URLPatternSet* new_hosts,
127 PermissionIDSet* permissions) const { 121 PermissionIDSet* permissions) const {
128 } 122 }
129 123
130 void TestExtensionsClient::SetScriptingWhitelist( 124 void TestExtensionsClient::SetScriptingWhitelist(
131 const ExtensionsClient::ScriptingWhitelist& whitelist) { 125 const ExtensionsClient::ScriptingWhitelist& whitelist) {
132 scripting_whitelist_ = whitelist; 126 scripting_whitelist_ = whitelist;
133 } 127 }
134 128
135 const ExtensionsClient::ScriptingWhitelist& 129 const ExtensionsClient::ScriptingWhitelist&
136 TestExtensionsClient::GetScriptingWhitelist() const { 130 TestExtensionsClient::GetScriptingWhitelist() const {
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
184 std::set<base::FilePath> TestExtensionsClient::GetBrowserImagePaths( 178 std::set<base::FilePath> TestExtensionsClient::GetBrowserImagePaths(
185 const Extension* extension) { 179 const Extension* extension) {
186 std::set<base::FilePath> result = 180 std::set<base::FilePath> result =
187 ExtensionsClient::GetBrowserImagePaths(extension); 181 ExtensionsClient::GetBrowserImagePaths(extension);
188 for (auto filter : browser_image_filters_) 182 for (auto filter : browser_image_filters_)
189 filter->Filter(extension, &result); 183 filter->Filter(extension, &result);
190 return result; 184 return result;
191 } 185 }
192 186
193 } // namespace extensions 187 } // namespace extensions
OLDNEW
« no previous file with comments | « extensions/test/test_extensions_client.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698