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

Side by Side Diff: chrome/browser/automation/automation_provider_observers.cc

Issue 10824030: Move ExtensionHost into extensions namespace (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 4 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/automation/automation_provider_observers.h" 5 #include "chrome/browser/automation/automation_provider_observers.h"
6 6
7 #include <deque> 7 #include <deque>
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 3056 matching lines...) Expand 10 before | Expand all | Expand 10 after
3067 3067
3068 void ExtensionPopupObserver::Observe( 3068 void ExtensionPopupObserver::Observe(
3069 int type, 3069 int type,
3070 const content::NotificationSource& source, 3070 const content::NotificationSource& source,
3071 const content::NotificationDetails& details) { 3071 const content::NotificationDetails& details) {
3072 if (!automation_) { 3072 if (!automation_) {
3073 delete this; 3073 delete this;
3074 return; 3074 return;
3075 } 3075 }
3076 3076
3077 ExtensionHost* host = content::Details<ExtensionHost>(details).ptr(); 3077 extensions::ExtensionHost* host =
3078 content::Details<extensions::ExtensionHost>(details).ptr();
3078 if (host->extension_id() == extension_id_ && 3079 if (host->extension_id() == extension_id_ &&
3079 host->extension_host_type() == chrome::VIEW_TYPE_EXTENSION_POPUP) { 3080 host->extension_host_type() == chrome::VIEW_TYPE_EXTENSION_POPUP) {
3080 AutomationJSONReply(automation_, reply_message_.release()) 3081 AutomationJSONReply(automation_, reply_message_.release())
3081 .SendSuccess(NULL); 3082 .SendSuccess(NULL);
3082 delete this; 3083 delete this;
3083 } 3084 }
3084 } 3085 }
3085 3086
3086 #if defined(OS_LINUX) 3087 #if defined(OS_LINUX)
3087 WindowMaximizedObserver::WindowMaximizedObserver( 3088 WindowMaximizedObserver::WindowMaximizedObserver(
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
3152 if (automation_) { 3153 if (automation_) {
3153 AutomationJSONReply(automation_, reply_message_.release()) 3154 AutomationJSONReply(automation_, reply_message_.release())
3154 .SendSuccess(NULL); 3155 .SendSuccess(NULL);
3155 } 3156 }
3156 delete this; 3157 delete this;
3157 } 3158 }
3158 } else { 3159 } else {
3159 NOTREACHED(); 3160 NOTREACHED();
3160 } 3161 }
3161 } 3162 }
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/background/background_contents_service.cc » ('j') | chrome/browser/extensions/extension_host.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698