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

Side by Side Diff: chrome/browser/extensions/api/tabs/tabs.cc

Issue 10544023: Moving the tabs_module API into a separate directory in api/ (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Correcting the order of includes. Created 8 years, 6 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/extensions/extension_tabs_module.h" 5 #include "chrome/browser/extensions/api/tabs/tabs.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <limits> 8 #include <limits>
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/base64.h" 11 #include "base/base64.h"
12 #include "base/bind.h" 12 #include "base/bind.h"
13 #include "base/logging.h" 13 #include "base/logging.h"
14 #include "base/memory/ref_counted_memory.h" 14 #include "base/memory/ref_counted_memory.h"
15 #include "base/message_loop.h" 15 #include "base/message_loop.h"
16 #include "base/stl_util.h" 16 #include "base/stl_util.h"
17 #include "base/string16.h" 17 #include "base/string16.h"
18 #include "base/string_number_conversions.h" 18 #include "base/string_number_conversions.h"
19 #include "base/string_util.h" 19 #include "base/string_util.h"
20 #include "base/stringprintf.h" 20 #include "base/stringprintf.h"
21 #include "base/utf_string_conversions.h" 21 #include "base/utf_string_conversions.h"
22 #include "chrome/browser/extensions/api/tabs/tabs_constants.h"
22 #include "chrome/browser/extensions/extension_function_dispatcher.h" 23 #include "chrome/browser/extensions/extension_function_dispatcher.h"
23 #include "chrome/browser/extensions/extension_function_util.h" 24 #include "chrome/browser/extensions/extension_function_util.h"
24 #include "chrome/browser/extensions/extension_host.h" 25 #include "chrome/browser/extensions/extension_host.h"
25 #include "chrome/browser/extensions/extension_service.h" 26 #include "chrome/browser/extensions/extension_service.h"
26 #include "chrome/browser/extensions/extension_tab_helper.h" 27 #include "chrome/browser/extensions/extension_tab_helper.h"
27 #include "chrome/browser/extensions/extension_tab_util.h" 28 #include "chrome/browser/extensions/extension_tab_util.h"
28 #include "chrome/browser/extensions/extension_tabs_module_constants.h"
29 #include "chrome/browser/extensions/extension_window_controller.h" 29 #include "chrome/browser/extensions/extension_window_controller.h"
30 #include "chrome/browser/extensions/extension_window_list.h" 30 #include "chrome/browser/extensions/extension_window_list.h"
31 #include "chrome/browser/extensions/script_executor.h" 31 #include "chrome/browser/extensions/script_executor.h"
32 #include "chrome/browser/prefs/incognito_mode_prefs.h" 32 #include "chrome/browser/prefs/incognito_mode_prefs.h"
33 #include "chrome/browser/profiles/profile.h" 33 #include "chrome/browser/profiles/profile.h"
34 #include "chrome/browser/sessions/restore_tab_helper.h" 34 #include "chrome/browser/sessions/restore_tab_helper.h"
35 #include "chrome/browser/translate/translate_tab_helper.h" 35 #include "chrome/browser/translate/translate_tab_helper.h"
36 #include "chrome/browser/ui/browser.h" 36 #include "chrome/browser/ui/browser.h"
37 #include "chrome/browser/ui/browser_finder.h" 37 #include "chrome/browser/ui/browser_finder.h"
38 #include "chrome/browser/ui/browser_list.h" 38 #include "chrome/browser/ui/browser_list.h"
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 79
80 #if defined(OS_WIN) 80 #if defined(OS_WIN)
81 #include "base/win/metro.h" 81 #include "base/win/metro.h"
82 #endif // OS_WIN 82 #endif // OS_WIN
83 83
84 namespace Get = extensions::api::windows::Get; 84 namespace Get = extensions::api::windows::Get;
85 namespace GetAll = extensions::api::windows::GetAll; 85 namespace GetAll = extensions::api::windows::GetAll;
86 namespace GetCurrent = extensions::api::windows::GetCurrent; 86 namespace GetCurrent = extensions::api::windows::GetCurrent;
87 namespace GetLastFocused = extensions::api::windows::GetLastFocused; 87 namespace GetLastFocused = extensions::api::windows::GetLastFocused;
88 namespace errors = extension_manifest_errors; 88 namespace errors = extension_manifest_errors;
89 namespace keys = extension_tabs_module_constants; 89 namespace keys = extensions::tabs_constants;
90 90
91 using content::NavigationController; 91 using content::NavigationController;
92 using content::NavigationEntry; 92 using content::NavigationEntry;
93 using content::OpenURLParams; 93 using content::OpenURLParams;
94 using content::Referrer; 94 using content::Referrer;
95 using content::RenderViewHost; 95 using content::RenderViewHost;
96 using content::WebContents; 96 using content::WebContents;
97 using extensions::ScriptExecutor; 97 using extensions::ScriptExecutor;
98 98
99 const int CaptureVisibleTabFunction::kDefaultQuality = 90; 99 const int CaptureVisibleTabFunction::kDefaultQuality = 90;
(...skipping 1701 matching lines...) Expand 10 before | Expand all | Expand 10 after
1801 // called for every API call the extension made. 1801 // called for every API call the extension made.
1802 GotLanguage(language); 1802 GotLanguage(language);
1803 } 1803 }
1804 1804
1805 void DetectTabLanguageFunction::GotLanguage(const std::string& language) { 1805 void DetectTabLanguageFunction::GotLanguage(const std::string& language) {
1806 result_.reset(Value::CreateStringValue(language.c_str())); 1806 result_.reset(Value::CreateStringValue(language.c_str()));
1807 SendResponse(true); 1807 SendResponse(true);
1808 1808
1809 Release(); // Balanced in Run() 1809 Release(); // Balanced in Run()
1810 } 1810 }
OLDNEW
« no previous file with comments | « chrome/browser/extensions/api/tabs/tabs.h ('k') | chrome/browser/extensions/api/tabs/tabs_constants.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698