NaCl: Update revision in DEPS, r12770 -> r12773
[chromium-blink-merge.git] / chrome / browser / extensions / extension_tab_util_android.cc
blobda7be3fbff76203058b4cb548d3505feb79ec375
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
3 // found in the LICENSE file.
5 #include "chrome/browser/extensions/extension_tab_util.h"
7 #include "base/logging.h"
8 #include "chrome/browser/sessions/session_id.h"
9 #include "url/gurl.h"
11 using content::WebContents;
13 namespace extensions {
15 // static
16 int ExtensionTabUtil::GetWindowId(const Browser* browser) {
17 NOTIMPLEMENTED();
18 return -1;
21 // static
22 int ExtensionTabUtil::GetWindowIdOfTabStripModel(
23 const TabStripModel* tab_strip_model) {
24 NOTIMPLEMENTED();
25 return -1;
28 // static
29 int ExtensionTabUtil::GetTabId(const WebContents* web_contents) {
30 return SessionID::IdForTab(web_contents);
33 // static
34 int ExtensionTabUtil::GetWindowIdOfTab(const WebContents* web_contents) {
35 NOTIMPLEMENTED();
36 return -1;
39 // static
40 base::DictionaryValue* ExtensionTabUtil::CreateTabValue(
41 const WebContents* contents,
42 TabStripModel* tab_strip,
43 int tab_index,
44 const Extension* extension) {
45 NOTIMPLEMENTED();
46 return NULL;
49 // static
50 base::ListValue* ExtensionTabUtil::CreateTabList(const Browser* browser,
51 const Extension* extension) {
52 NOTIMPLEMENTED();
53 return NULL;
56 // static
57 base::DictionaryValue* ExtensionTabUtil::CreateTabValue(
58 const WebContents* contents,
59 TabStripModel* tab_strip,
60 int tab_index) {
61 NOTIMPLEMENTED();
62 return NULL;
65 // static
66 bool ExtensionTabUtil::GetTabStripModel(const WebContents* web_contents,
67 TabStripModel** tab_strip_model,
68 int* tab_index) {
69 NOTIMPLEMENTED();
70 return false;
73 // static
74 bool ExtensionTabUtil::GetDefaultTab(Browser* browser,
75 content::WebContents** contents,
76 int* tab_id) {
77 NOTIMPLEMENTED();
78 return false;
81 // static
82 bool ExtensionTabUtil::GetTabById(int tab_id,
83 Profile* profile,
84 bool include_incognito,
85 Browser** browser,
86 TabStripModel** tab_strip,
87 content::WebContents** contents,
88 int* tab_index) {
89 NOTIMPLEMENTED();
90 return false;
93 // static
94 GURL ExtensionTabUtil::ResolvePossiblyRelativeURL(const std::string& url_string,
95 const Extension* extension) {
96 NOTIMPLEMENTED();
97 return GURL();
100 // static
101 bool ExtensionTabUtil::IsCrashURL(const GURL& url) {
102 NOTIMPLEMENTED();
103 return false;
106 // static
107 void ExtensionTabUtil::CreateTab(WebContents* web_contents,
108 const std::string& extension_id,
109 WindowOpenDisposition disposition,
110 const gfx::Rect& initial_pos,
111 bool user_gesture) {
112 NOTIMPLEMENTED();
115 // static
116 void ExtensionTabUtil::ForEachTab(
117 const base::Callback<void(WebContents*)>& callback) {
118 NOTIMPLEMENTED();
121 // static
122 WindowController* ExtensionTabUtil::GetWindowControllerOfTab(
123 const WebContents* web_contents) {
124 NOTIMPLEMENTED();
125 return NULL;
128 } // namespace extensions