OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 "app/message_box_flags.h" | |
10 #include "base/callback.h" | 9 #include "base/callback.h" |
11 #include "base/debug/trace_event.h" | 10 #include "base/debug/trace_event.h" |
12 #include "base/file_path.h" | 11 #include "base/file_path.h" |
13 #include "base/json/json_reader.h" | 12 #include "base/json/json_reader.h" |
14 #include "base/json/json_writer.h" | 13 #include "base/json/json_writer.h" |
15 #include "base/json/string_escape.h" | 14 #include "base/json/string_escape.h" |
16 #include "base/message_loop.h" | 15 #include "base/message_loop.h" |
17 #include "base/path_service.h" | 16 #include "base/path_service.h" |
18 #include "base/process_util.h" | 17 #include "base/process_util.h" |
19 #include "base/stl_util-inl.h" | 18 #include "base/stl_util-inl.h" |
(...skipping 1009 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1029 } | 1028 } |
1030 } | 1029 } |
1031 } | 1030 } |
1032 | 1031 |
1033 void AutomationProvider::SaveAsAsync(int tab_handle) { | 1032 void AutomationProvider::SaveAsAsync(int tab_handle) { |
1034 NavigationController* tab = NULL; | 1033 NavigationController* tab = NULL; |
1035 TabContents* tab_contents = GetTabContentsForHandle(tab_handle, &tab); | 1034 TabContents* tab_contents = GetTabContentsForHandle(tab_handle, &tab); |
1036 if (tab_contents) | 1035 if (tab_contents) |
1037 tab_contents->OnSavePage(); | 1036 tab_contents->OnSavePage(); |
1038 } | 1037 } |
OLD | NEW |