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

Side by Side Diff: chrome/browser/extensions/extension_tabs_module_constants.cc

Issue 199074: Don't allow updating tabs to javascript URLs without host (Closed)
Patch Set: Remove unchanged file Created 11 years, 3 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) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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_constants.h" 5 #include "chrome/browser/extensions/extension_tabs_module_constants.h"
6 6
7 namespace extension_tabs_module_constants { 7 namespace extension_tabs_module_constants {
8 8
9 const wchar_t kFavIconUrlKey[] = L"favIconUrl"; 9 const wchar_t kFavIconUrlKey[] = L"favIconUrl";
10 const wchar_t kFocusedKey[] = L"focused"; 10 const wchar_t kFocusedKey[] = L"focused";
(...skipping 24 matching lines...) Expand all
35 35
36 const char kNoCurrentWindowError[] = "No current window"; 36 const char kNoCurrentWindowError[] = "No current window";
37 const char kNoLastFocusedWindowError[] = "No last-focused window"; 37 const char kNoLastFocusedWindowError[] = "No last-focused window";
38 const char kWindowNotFoundError[] = "No window with id: *."; 38 const char kWindowNotFoundError[] = "No window with id: *.";
39 const char kTabNotFoundError[] = "No tab with id: *."; 39 const char kTabNotFoundError[] = "No tab with id: *.";
40 const char kNoSelectedTabError[] = "No selected tab"; 40 const char kNoSelectedTabError[] = "No selected tab";
41 const char kInvalidUrlError[] = "Invalid url: \"*\"."; 41 const char kInvalidUrlError[] = "Invalid url: \"*\".";
42 const char kInternalVisibleTabCaptureError[] = 42 const char kInternalVisibleTabCaptureError[] =
43 "Internal error while trying to capture visible region of the current tab"; 43 "Internal error while trying to capture visible region of the current tab";
44 const char kNotImplementedError[] = "This call is not yet implemented"; 44 const char kNotImplementedError[] = "This call is not yet implemented";
45 const char kCannotAccessPageError[] = "Cannot access contents of url \"*\". "
46 "Extension manifest must request permission to access this host.";
45 47
46 const char kGetWindowFunction[] = "windows.get"; 48 const char kGetWindowFunction[] = "windows.get";
47 const char kGetCurrentWindowFunction[] = "windows.getCurrent"; 49 const char kGetCurrentWindowFunction[] = "windows.getCurrent";
48 const char kGetLastFocusedWindowFunction[] = "windows.getLastFocused"; 50 const char kGetLastFocusedWindowFunction[] = "windows.getLastFocused";
49 const char kGetAllWindowsFunction[] = "windows.getAll"; 51 const char kGetAllWindowsFunction[] = "windows.getAll";
50 const char kCreateWindowFunction[] = "windows.create"; 52 const char kCreateWindowFunction[] = "windows.create";
51 const char kUpdateWindowFunction[] = "windows.update"; 53 const char kUpdateWindowFunction[] = "windows.update";
52 const char kRemoveWindowFunction[] = "windows.remove"; 54 const char kRemoveWindowFunction[] = "windows.remove";
53 55
54 const char kGetTabFunction[] = "tabs.get"; 56 const char kGetTabFunction[] = "tabs.get";
55 const char kGetSelectedTabFunction[] = "tabs.getSelected"; 57 const char kGetSelectedTabFunction[] = "tabs.getSelected";
56 const char kGetAllTabsInWindowFunction[] = "tabs.getAllInWindow"; 58 const char kGetAllTabsInWindowFunction[] = "tabs.getAllInWindow";
57 const char kCreateTabFunction[] = "tabs.create"; 59 const char kCreateTabFunction[] = "tabs.create";
58 const char kUpdateTabFunction[] = "tabs.update"; 60 const char kUpdateTabFunction[] = "tabs.update";
59 const char kMoveTabFunction[] = "tabs.move"; 61 const char kMoveTabFunction[] = "tabs.move";
60 const char kRemoveTabFunction[] = "tabs.remove"; 62 const char kRemoveTabFunction[] = "tabs.remove";
61 const char kDetectTabLanguageFunction[] = "tabs.detectLanguage"; 63 const char kDetectTabLanguageFunction[] = "tabs.detectLanguage";
62 const char kCaptureVisibleTabFunction[] = "tabs.captureVisibleTab"; 64 const char kCaptureVisibleTabFunction[] = "tabs.captureVisibleTab";
63 65
64 } // namespace extension_tabs_module_constants 66 } // namespace extension_tabs_module_constants
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698