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

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

Issue 8983010: Convert WebContents to return a content::NavigationController instead of the implementation. Upda... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix mac Created 8 years, 11 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/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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 #include "chrome/browser/ui/webui/ntp/most_visited_handler.h" 69 #include "chrome/browser/ui/webui/ntp/most_visited_handler.h"
70 #include "chrome/browser/ui/webui/ntp/new_tab_ui.h" 70 #include "chrome/browser/ui/webui/ntp/new_tab_ui.h"
71 #include "chrome/browser/ui/webui/ntp/recently_closed_tabs_handler.h" 71 #include "chrome/browser/ui/webui/ntp/recently_closed_tabs_handler.h"
72 #include "chrome/common/automation_messages.h" 72 #include "chrome/common/automation_messages.h"
73 #include "chrome/common/chrome_notification_types.h" 73 #include "chrome/common/chrome_notification_types.h"
74 #include "chrome/common/chrome_view_type.h" 74 #include "chrome/common/chrome_view_type.h"
75 #include "chrome/common/content_settings_types.h" 75 #include "chrome/common/content_settings_types.h"
76 #include "chrome/common/extensions/extension.h" 76 #include "chrome/common/extensions/extension.h"
77 #include "content/browser/download/save_package.h" 77 #include "content/browser/download/save_package.h"
78 #include "content/browser/renderer_host/render_view_host.h" 78 #include "content/browser/renderer_host/render_view_host.h"
79 #include "content/browser/tab_contents/navigation_controller.h"
80 #include "content/browser/tab_contents/tab_contents.h" 79 #include "content/browser/tab_contents/tab_contents.h"
80 #include "content/public/browser/navigation_controller.h"
81 #include "content/public/browser/notification_service.h" 81 #include "content/public/browser/notification_service.h"
82 #include "content/public/browser/render_process_host.h" 82 #include "content/public/browser/render_process_host.h"
83 #include "content/public/common/process_type.h" 83 #include "content/public/common/process_type.h"
84 #include "googleurl/src/gurl.h" 84 #include "googleurl/src/gurl.h"
85 #include "third_party/skia/include/core/SkBitmap.h" 85 #include "third_party/skia/include/core/SkBitmap.h"
86 #include "ui/gfx/codec/png_codec.h" 86 #include "ui/gfx/codec/png_codec.h"
87 #include "ui/gfx/rect.h" 87 #include "ui/gfx/rect.h"
88 88
89 using content::BrowserThread; 89 using content::BrowserThread;
90 using content::DownloadItem; 90 using content::DownloadItem;
(...skipping 3007 matching lines...) Expand 10 before | Expand all | Expand 10 after
3098 } 3098 }
3099 3099
3100 ExtensionHost* host = content::Details<ExtensionHost>(details).ptr(); 3100 ExtensionHost* host = content::Details<ExtensionHost>(details).ptr();
3101 if (host->extension_id() == extension_id_ && 3101 if (host->extension_id() == extension_id_ &&
3102 host->extension_host_type() == chrome::VIEW_TYPE_EXTENSION_POPUP) { 3102 host->extension_host_type() == chrome::VIEW_TYPE_EXTENSION_POPUP) {
3103 AutomationJSONReply(automation_, reply_message_.release()) 3103 AutomationJSONReply(automation_, reply_message_.release())
3104 .SendSuccess(NULL); 3104 .SendSuccess(NULL);
3105 delete this; 3105 delete this;
3106 } 3106 }
3107 } 3107 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698