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

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

Issue 411004: Special case the gallery to not show the scary download roadblock. (Closed)
Patch Set: add comments Created 11 years, 1 month 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 | « chrome/browser/dom_ui/new_tab_ui.cc ('k') | chrome/browser/extensions/extensions_service.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 (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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 7
8 #include <map> 8 #include <map>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 // The name of the directory inside the profile where extensions are 64 // The name of the directory inside the profile where extensions are
65 // installed to. 65 // installed to.
66 static const char* kInstallDirectoryName; 66 static const char* kInstallDirectoryName;
67 67
68 // If auto-updates are turned on, default to running every 5 hours. 68 // If auto-updates are turned on, default to running every 5 hours.
69 static const int kDefaultUpdateFrequencySeconds = 60 * 60 * 5; 69 static const int kDefaultUpdateFrequencySeconds = 60 * 60 * 5;
70 70
71 // The name of the file that the current active version number is stored in. 71 // The name of the file that the current active version number is stored in.
72 static const char* kCurrentVersionFileName; 72 static const char* kCurrentVersionFileName;
73 73
74 // Hack:
75 // Extensions downloaded from kGalleryDownloadURLPrefix initiated from pages
76 // with kGalleryURLPrefix will not require --enable-extensions and will be
77 // prompt-free.
78 static const char* kGalleryDownloadURLPrefix;
79 static const char* kGalleryURLPrefix;
80
81 // Determine if a given extension download should be treated as if it came 74 // Determine if a given extension download should be treated as if it came
82 // from the gallery. 75 // from the gallery.
83 static bool IsDownloadFromGallery(const GURL& download_url, 76 static bool IsDownloadFromGallery(const GURL& download_url,
84 const GURL& referrer_url); 77 const GURL& referrer_url);
85 78
86 ExtensionsService(Profile* profile, 79 ExtensionsService(Profile* profile,
87 const CommandLine* command_line, 80 const CommandLine* command_line,
88 PrefService* prefs, 81 PrefService* prefs,
89 const FilePath& install_directory, 82 const FilePath& install_directory,
90 bool autoupdate_enabled); 83 bool autoupdate_enabled);
(...skipping 301 matching lines...) Expand 10 before | Expand all | Expand 10 after
392 385
393 // A map of all external extension providers. 386 // A map of all external extension providers.
394 typedef std::map<Extension::Location, 387 typedef std::map<Extension::Location,
395 linked_ptr<ExternalExtensionProvider> > ProviderMap; 388 linked_ptr<ExternalExtensionProvider> > ProviderMap;
396 ProviderMap external_extension_providers_; 389 ProviderMap external_extension_providers_;
397 390
398 DISALLOW_COPY_AND_ASSIGN(ExtensionsServiceBackend); 391 DISALLOW_COPY_AND_ASSIGN(ExtensionsServiceBackend);
399 }; 392 };
400 393
401 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSIONS_SERVICE_H_ 394 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSIONS_SERVICE_H_
OLDNEW
« no previous file with comments | « chrome/browser/dom_ui/new_tab_ui.cc ('k') | chrome/browser/extensions/extensions_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698