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

Side by Side Diff: chrome/browser/extensions/extension_tab_util.h

Issue 9796012: Revert 127833 - Re-land alexbost's experimental offscreenTabs API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 9 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 | Annotate | Revision Log
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 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_TAB_UTIL_H__ 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_TAB_UTIL_H__
6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_TAB_UTIL_H__ 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_TAB_UTIL_H__
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
11 class Browser; 11 class Browser;
12 class Extension;
13 class GURL;
14 class Profile; 12 class Profile;
15 class TabContents; 13 class TabContents;
16 class TabContentsWrapper; 14 class TabContentsWrapper;
17 class TabStripModel; 15 class TabStripModel;
18 16
19 namespace base { 17 namespace base {
20 class DictionaryValue; 18 class DictionaryValue;
21 class ListValue; 19 class ListValue;
22 } 20 }
23 21
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 static bool GetDefaultTab(Browser* browser, 55 static bool GetDefaultTab(Browser* browser,
58 TabContentsWrapper** contents, 56 TabContentsWrapper** contents,
59 int* tab_id); 57 int* tab_id);
60 // Any out parameter (|browser|, |tab_strip|, |contents|, & |tab_index|) may 58 // Any out parameter (|browser|, |tab_strip|, |contents|, & |tab_index|) may
61 // be NULL and will not be set within the function. 59 // be NULL and will not be set within the function.
62 static bool GetTabById(int tab_id, Profile* profile, bool incognito_enabled, 60 static bool GetTabById(int tab_id, Profile* profile, bool incognito_enabled,
63 Browser** browser, 61 Browser** browser,
64 TabStripModel** tab_strip, 62 TabStripModel** tab_strip,
65 TabContentsWrapper** contents, 63 TabContentsWrapper** contents,
66 int* tab_index); 64 int* tab_index);
67
68 // Takes |url_string| and returns a GURL which is either valid and absolute
69 // or invalid. If |url_string| is not directly interpretable as a valid (it is
70 // likely a relative URL) an attempt is made to resolve it. |extension| is
71 // provided so it can be resolved relative to its extension base
72 // (chrome-extension://<id>/). Using the source frame url would be more
73 // correct, but because the api shipped with urls resolved relative to their
74 // extension base, we decided it wasn't worth breaking existing extensions to
75 // fix.
76 static GURL ResolvePossiblyRelativeURL(const std::string& url_string,
77 const Extension* extension);
78
79 // Returns true if |url| is used for testing crashes.
80 static bool IsCrashURL(const GURL& url);
81 }; 65 };
82 66
83 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_TAB_UTIL_H__ 67 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_TAB_UTIL_H__
OLDNEW
« no previous file with comments | « chrome/browser/extensions/extension_function_registry.cc ('k') | chrome/browser/extensions/extension_tab_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698