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

Side by Side Diff: chrome/browser/extensions/webstore_inline_installer.cc

Issue 8403017: Rename URLFetcher to be URLFetcherImpl, now that we have the content::URLFetcher interface. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 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 | 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/browser/extensions/webstore_inline_installer.h" 5 #include "chrome/browser/extensions/webstore_inline_installer.h"
6 6
7 #include <vector> 7 #include <vector>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/string_util.h" 10 #include "base/string_util.h"
11 #include "base/values.h" 11 #include "base/values.h"
12 #include "chrome/browser/browser_process.h" 12 #include "chrome/browser/browser_process.h"
13 #include "chrome/browser/extensions/crx_installer.h" 13 #include "chrome/browser/extensions/crx_installer.h"
14 #include "chrome/browser/extensions/extension_install_dialog.h" 14 #include "chrome/browser/extensions/extension_install_dialog.h"
15 #include "chrome/browser/extensions/extension_service.h" 15 #include "chrome/browser/extensions/extension_service.h"
16 #include "chrome/browser/profiles/profile.h" 16 #include "chrome/browser/profiles/profile.h"
17 #include "chrome/common/chrome_utility_messages.h" 17 #include "chrome/common/chrome_utility_messages.h"
18 #include "chrome/common/extensions/extension.h" 18 #include "chrome/common/extensions/extension.h"
19 #include "chrome/common/extensions/extension_constants.h" 19 #include "chrome/common/extensions/extension_constants.h"
20 #include "chrome/common/extensions/url_pattern.h" 20 #include "chrome/common/extensions/url_pattern.h"
21 #include "content/browser/tab_contents/tab_contents.h" 21 #include "content/browser/tab_contents/tab_contents.h"
22 #include "content/browser/utility_process_host.h" 22 #include "content/browser/utility_process_host.h"
23 #include "content/common/net/url_fetcher.h" 23 #include "content/public/common/url_fetcher.h"
24 #include "net/base/escape.h" 24 #include "net/base/escape.h"
25 #include "net/base/load_flags.h" 25 #include "net/base/load_flags.h"
26 #include "net/url_request/url_request_status.h" 26 #include "net/url_request/url_request_status.h"
27 27
28 const char kManifestKey[] = "manifest"; 28 const char kManifestKey[] = "manifest";
29 const char kIconUrlKey[] = "icon_url"; 29 const char kIconUrlKey[] = "icon_url";
30 const char kLocalizedNameKey[] = "localized_name"; 30 const char kLocalizedNameKey[] = "localized_name";
31 const char kLocalizedDescriptionKey[] = "localized_description"; 31 const char kLocalizedDescriptionKey[] = "localized_description";
32 const char kUsersKey[] = "users"; 32 const char kUsersKey[] = "users";
33 const char kAverageRatingKey[] = "average_rating"; 33 const char kAverageRatingKey[] = "average_rating";
(...skipping 386 matching lines...) Expand 10 before | Expand all | Expand 10 after
420 if (tab_contents()) { 420 if (tab_contents()) {
421 if (error.empty()) { 421 if (error.empty()) {
422 delegate_->OnInlineInstallSuccess(install_id_); 422 delegate_->OnInlineInstallSuccess(install_id_);
423 } else { 423 } else {
424 delegate_->OnInlineInstallFailure(install_id_, error); 424 delegate_->OnInlineInstallFailure(install_id_, error);
425 } 425 }
426 } 426 }
427 427
428 Release(); // Matches the AddRef in BeginInstall. 428 Release(); // Matches the AddRef in BeginInstall.
429 } 429 }
OLDNEW
« no previous file with comments | « chrome/browser/extensions/extension_management_browsertest.cc ('k') | chrome/browser/google/google_url_tracker_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698