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

Unified Diff: chrome/browser/ui/intents/web_intent_picker_controller.cc

Issue 10386063: Move URLFetcherDelegate to net/ and split URLFetcher between net/ and content/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: sync to head, fix win component build Created 8 years, 7 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/intents/web_intent_picker_controller.cc
diff --git a/chrome/browser/ui/intents/web_intent_picker_controller.cc b/chrome/browser/ui/intents/web_intent_picker_controller.cc
index daa7ace9984d7910fff810006c3bbec9f734413d..570d60500cb2b2c4e1fc0ab499ed98a0005c9cd8 100644
--- a/chrome/browser/ui/intents/web_intent_picker_controller.cc
+++ b/chrome/browser/ui/intents/web_intent_picker_controller.cc
@@ -12,9 +12,9 @@
#include "base/utf_string_conversions.h"
#include "chrome/browser/extensions/webstore_installer.h"
#include "chrome/browser/favicon/favicon_service.h"
+#include "chrome/browser/intents/cws_intents_registry_factory.h"
#include "chrome/browser/intents/default_web_intent_service.h"
#include "chrome/browser/intents/web_intents_registry_factory.h"
-#include "chrome/browser/intents/cws_intents_registry_factory.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/tab_contents/tab_util.h"
#include "chrome/browser/tabs/tab_strip_model.h"
@@ -101,14 +101,14 @@ string16 GetIntentActionString(const std::string& action) {
// Self-deleting trampoline that forwards A URLFetcher response to a callback.
class URLFetcherTrampoline : public content::URLFetcherDelegate {
public:
- typedef base::Callback<void(const content::URLFetcher* source)>
+ typedef base::Callback<void(const net::URLFetcher* source)>
ForwardingCallback;
explicit URLFetcherTrampoline(const ForwardingCallback& callback);
~URLFetcherTrampoline();
// content::URLFetcherDelegate implementation.
- virtual void OnURLFetchComplete(const content::URLFetcher* source) OVERRIDE;
+ virtual void OnURLFetchComplete(const net::URLFetcher* source) OVERRIDE;
private:
// Fowarding callback from |OnURLFetchComplete|.
@@ -123,7 +123,7 @@ URLFetcherTrampoline::~URLFetcherTrampoline() {
}
void URLFetcherTrampoline::OnURLFetchComplete(
- const content::URLFetcher* source) {
+ const net::URLFetcher* source) {
DCHECK(!callback_.is_null());
callback_.Run(source);
delete source;
@@ -575,7 +575,7 @@ void WebIntentPickerController::OnCWSIntentServicesAvailable(
}
void WebIntentPickerController::OnExtensionIconURLFetchComplete(
- const string16& extension_id, const content::URLFetcher* source) {
+ const string16& extension_id, const net::URLFetcher* source) {
DCHECK(content::BrowserThread::CurrentlyOn(content::BrowserThread::UI));
if (source->GetResponseCode() != 200) {
AsyncOperationFinished();
« no previous file with comments | « chrome/browser/ui/intents/web_intent_picker_controller.h ('k') | chrome/browser/ui/webui/ntp/suggestions_source_discovery.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698