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

Side by Side Diff: extensions/browser/extension_util.h

Issue 2881453002: DNR Prototype: With flatbuffers
Patch Set: -- Created 3 years, 6 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/browser/extension_system.h ('k') | extensions/browser/extension_util.cc » ('j') | 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 #ifndef EXTENSIONS_BROWSER_EXTENSION_UTIL_H_ 5 #ifndef EXTENSIONS_BROWSER_EXTENSION_UTIL_H_
6 #define EXTENSIONS_BROWSER_EXTENSION_UTIL_H_ 6 #define EXTENSIONS_BROWSER_EXTENSION_UTIL_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "url/gurl.h" 10 #include "url/gurl.h"
(...skipping 30 matching lines...) Expand all
41 41
42 // Returns the site of the |extension_id|, given the associated |context|. 42 // Returns the site of the |extension_id|, given the associated |context|.
43 // Suitable for use with BrowserContext::GetStoragePartitionForSite(). 43 // Suitable for use with BrowserContext::GetStoragePartitionForSite().
44 GURL GetSiteForExtensionId(const std::string& extension_id, 44 GURL GetSiteForExtensionId(const std::string& extension_id,
45 content::BrowserContext* context); 45 content::BrowserContext* context);
46 46
47 content::StoragePartition* GetStoragePartitionForExtensionId( 47 content::StoragePartition* GetStoragePartitionForExtensionId(
48 const std::string& extension_id, 48 const std::string& extension_id,
49 content::BrowserContext* browser_context); 49 content::BrowserContext* browser_context);
50 50
51 // Returns true if the |extension| has an indexed ruleset on disk for the
52 // declarativeNetRequest API.
53 // TODO should this be in e/b/api/dnr?
54 bool HasIndexedRuleset(const Extension* extension);
55
51 } // namespace util 56 } // namespace util
52 } // namespace extensions 57 } // namespace extensions
53 58
54 #endif // EXTENSIONS_BROWSER_EXTENSION_UTIL_H_ 59 #endif // EXTENSIONS_BROWSER_EXTENSION_UTIL_H_
OLDNEW
« no previous file with comments | « extensions/browser/extension_system.h ('k') | extensions/browser/extension_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698