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

Side by Side Diff: chrome/common/extensions/extension_constants.cc

Issue 7741037: Add WebstoreInlineInstaller (downloads store data, shows the install UI, and starts the install). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Put webstore response in the right directory. Created 9 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 "chrome/common/extensions/extension_constants.h" 5 #include "chrome/common/extensions/extension_constants.h"
6 6
7 #include <vector> 7 #include <vector>
8 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/string_util.h" 10 #include "base/string_util.h"
(...skipping 407 matching lines...) Expand 10 before | Expand all | Expand 10 after
418 switches::kAppsGalleryURL); 418 switches::kAppsGalleryURL);
419 if (EndsWith(gallery_prefix, "/", true)) 419 if (EndsWith(gallery_prefix, "/", true))
420 gallery_prefix = gallery_prefix.substr(0, gallery_prefix.length() - 1); 420 gallery_prefix = gallery_prefix.substr(0, gallery_prefix.length() - 1);
421 return gallery_prefix; 421 return gallery_prefix;
422 } 422 }
423 423
424 std::string GetWebstoreItemDetailURLPrefix() { 424 std::string GetWebstoreItemDetailURLPrefix() {
425 return GetWebstoreLaunchURL() + "/detail/"; 425 return GetWebstoreLaunchURL() + "/detail/";
426 } 426 }
427 427
428 GURL GetWebstoreItemJsonDataURL(const std::string& extension_id) {
429 return GURL(GetWebstoreItemDetailURLPrefix() + extension_id + "?output=json");
430 }
431
428 const char* kGalleryUpdateHttpUrl = 432 const char* kGalleryUpdateHttpUrl =
429 "http://clients2.google.com/service/update2/crx"; 433 "http://clients2.google.com/service/update2/crx";
430 const char* kGalleryUpdateHttpsUrl = 434 const char* kGalleryUpdateHttpsUrl =
431 "https://clients2.google.com/service/update2/crx"; 435 "https://clients2.google.com/service/update2/crx";
432 436
433 GURL GetWebstoreUpdateUrl(bool secure) { 437 GURL GetWebstoreUpdateUrl(bool secure) {
434 CommandLine* cmdline = CommandLine::ForCurrentProcess(); 438 CommandLine* cmdline = CommandLine::ForCurrentProcess();
435 if (cmdline->HasSwitch(switches::kAppsGalleryUpdateURL)) 439 if (cmdline->HasSwitch(switches::kAppsGalleryUpdateURL))
436 return GURL(cmdline->GetSwitchValueASCII(switches::kAppsGalleryUpdateURL)); 440 return GURL(cmdline->GetSwitchValueASCII(switches::kAppsGalleryUpdateURL));
437 else 441 else
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
475 const char* kCloudPrintAppId = "mfehgcgbbipciphmccgaenjidiccnmng"; 479 const char* kCloudPrintAppId = "mfehgcgbbipciphmccgaenjidiccnmng";
476 const char* kAppsPromoHistogram = "Extensions.AppsPromo"; 480 const char* kAppsPromoHistogram = "Extensions.AppsPromo";
477 const char* kAppLaunchHistogram = "Extensions.AppLaunch"; 481 const char* kAppLaunchHistogram = "Extensions.AppLaunch";
478 #if defined(OS_CHROMEOS) 482 #if defined(OS_CHROMEOS)
479 const char* kAccessExtensionPath = 483 const char* kAccessExtensionPath =
480 "/usr/share/chromeos-assets/accessibility/extensions"; 484 "/usr/share/chromeos-assets/accessibility/extensions";
481 const char* kChromeVoxDirectoryName = "access_chromevox"; 485 const char* kChromeVoxDirectoryName = "access_chromevox";
482 #endif 486 #endif
483 487
484 } 488 }
OLDNEW
« no previous file with comments | « chrome/common/extensions/extension_constants.h ('k') | chrome/common/extensions/extension_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698