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

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

Issue 8549022: Define DevTools content API (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: jam's comments addressed Created 9 years 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
« no previous file with comments | « chrome/browser/DEPS ('k') | chrome/browser/debugger/devtools_sanity_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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.h" 5 #include "chrome/browser/automation/automation_provider.h"
6 6
7 #include <set> 7 #include <set>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/callback.h" 10 #include "base/callback.h"
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 #include "chrome/common/automation_constants.h" 72 #include "chrome/common/automation_constants.h"
73 #include "chrome/common/automation_messages.h" 73 #include "chrome/common/automation_messages.h"
74 #include "chrome/common/chrome_constants.h" 74 #include "chrome/common/chrome_constants.h"
75 #include "chrome/common/chrome_paths.h" 75 #include "chrome/common/chrome_paths.h"
76 #include "chrome/common/chrome_switches.h" 76 #include "chrome/common/chrome_switches.h"
77 #include "chrome/common/chrome_version_info.h" 77 #include "chrome/common/chrome_version_info.h"
78 #include "chrome/common/extensions/extension.h" 78 #include "chrome/common/extensions/extension.h"
79 #include "chrome/common/pref_names.h" 79 #include "chrome/common/pref_names.h"
80 #include "chrome/common/render_messages.h" 80 #include "chrome/common/render_messages.h"
81 #include "chrome/common/url_constants.h" 81 #include "chrome/common/url_constants.h"
82 #include "content/browser/debugger/devtools_manager.h"
83 #include "content/browser/download/download_item.h" 82 #include "content/browser/download/download_item.h"
84 #include "content/browser/download/save_package.h" 83 #include "content/browser/download/save_package.h"
85 #include "content/browser/renderer_host/render_view_host.h" 84 #include "content/browser/renderer_host/render_view_host.h"
86 #include "content/browser/ssl/ssl_manager.h" 85 #include "content/browser/ssl/ssl_manager.h"
87 #include "content/browser/tab_contents/navigation_entry.h" 86 #include "content/browser/tab_contents/navigation_entry.h"
88 #include "content/browser/tab_contents/tab_contents.h" 87 #include "content/browser/tab_contents/tab_contents.h"
89 #include "content/browser/tab_contents/tab_contents_view.h" 88 #include "content/browser/tab_contents/tab_contents_view.h"
90 #include "content/public/browser/browser_thread.h" 89 #include "content/public/browser/browser_thread.h"
91 #include "net/proxy/proxy_config_service_fixed.h" 90 #include "net/proxy/proxy_config_service_fixed.h"
92 #include "net/proxy/proxy_service.h" 91 #include "net/proxy/proxy_service.h"
(...skipping 904 matching lines...) Expand 10 before | Expand all | Expand 10 after
997 } 996 }
998 } 997 }
999 } 998 }
1000 999
1001 void AutomationProvider::SaveAsAsync(int tab_handle) { 1000 void AutomationProvider::SaveAsAsync(int tab_handle) {
1002 NavigationController* tab = NULL; 1001 NavigationController* tab = NULL;
1003 TabContents* tab_contents = GetTabContentsForHandle(tab_handle, &tab); 1002 TabContents* tab_contents = GetTabContentsForHandle(tab_handle, &tab);
1004 if (tab_contents) 1003 if (tab_contents)
1005 tab_contents->OnSavePage(); 1004 tab_contents->OnSavePage();
1006 } 1005 }
OLDNEW
« no previous file with comments | « chrome/browser/DEPS ('k') | chrome/browser/debugger/devtools_sanity_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698