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

Side by Side Diff: chrome/browser/extensions/extensions_service.h

Issue 3263007: Reland r57788 - Expose Extension Bindings to Component Applications (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: don't hide gallery url in omnibar Created 10 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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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_EXTENSIONS_SERVICE_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSIONS_SERVICE_H_
6 #define CHROME_BROWSER_EXTENSIONS_EXTENSIONS_SERVICE_H_ 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSIONS_SERVICE_H_
7 #pragma once 7 #pragma once
8 8
9 #include <map> 9 #include <map>
10 #include <set> 10 #include <set>
(...skipping 270 matching lines...) Expand 10 before | Expand all | Expand 10 after
281 Extension* GetExtensionByURL(const GURL& url); 281 Extension* GetExtensionByURL(const GURL& url);
282 282
283 // If there is an extension for the specified url it is returned. Otherwise 283 // If there is an extension for the specified url it is returned. Otherwise
284 // returns the extension whose web extent contains |url|. 284 // returns the extension whose web extent contains |url|.
285 Extension* GetExtensionByWebExtent(const GURL& url); 285 Extension* GetExtensionByWebExtent(const GURL& url);
286 286
287 // Returns an extension that contains any URL that overlaps with the given 287 // Returns an extension that contains any URL that overlaps with the given
288 // extent, if one exists. 288 // extent, if one exists.
289 Extension* GetExtensionByOverlappingWebExtent(const ExtensionExtent& extent); 289 Extension* GetExtensionByOverlappingWebExtent(const ExtensionExtent& extent);
290 290
291 // Returns true if |url| should get extension api bindings and be permitted
292 // to make api calls. Note that this is independent of what extension
293 // permissions the given extension has been granted.
294 bool ExtensionBindingsAllowed(const GURL& url);
295
291 // Returns the icon to display in the omnibox for the given extension. 296 // Returns the icon to display in the omnibox for the given extension.
292 const SkBitmap& GetOmniboxIcon(const std::string& extension_id); 297 const SkBitmap& GetOmniboxIcon(const std::string& extension_id);
293 298
294 // Clear all ExternalExtensionProviders. 299 // Clear all ExternalExtensionProviders.
295 void ClearProvidersForTesting(); 300 void ClearProvidersForTesting();
296 301
297 // Sets an ExternalExtensionProvider for the service to use during testing. 302 // Sets an ExternalExtensionProvider for the service to use during testing.
298 // |location| specifies what type of provider should be added. 303 // |location| specifies what type of provider should be added.
299 void SetProviderForTesting(Extension::Location location, 304 void SetProviderForTesting(Extension::Location location,
300 ExternalExtensionProvider* test_provider); 305 ExternalExtensionProvider* test_provider);
(...skipping 295 matching lines...) Expand 10 before | Expand all | Expand 10 after
596 601
597 // Set to true by OnExternalExtensionUpdateUrlFound() when an external 602 // Set to true by OnExternalExtensionUpdateUrlFound() when an external
598 // extension URL is found. Used in CheckForExternalUpdates() to see 603 // extension URL is found. Used in CheckForExternalUpdates() to see
599 // if an update check is needed to install pending extensions. 604 // if an update check is needed to install pending extensions.
600 bool external_extension_added_; 605 bool external_extension_added_;
601 606
602 DISALLOW_COPY_AND_ASSIGN(ExtensionsServiceBackend); 607 DISALLOW_COPY_AND_ASSIGN(ExtensionsServiceBackend);
603 }; 608 };
604 609
605 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSIONS_SERVICE_H_ 610 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSIONS_SERVICE_H_
OLDNEW
« no previous file with comments | « chrome/browser/extensions/extension_messages_browsertest.cc ('k') | chrome/browser/extensions/extensions_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698