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

Side by Side Diff: content/shell/shell.h

Issue 9146028: Define the public interface for content browser SiteInstance. This interface is implemented by th... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 8 years, 11 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
« no previous file with comments | « content/public/browser/web_contents.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 CONTENT_SHELL_SHELL_H_ 5 #ifndef CONTENT_SHELL_SHELL_H_
6 #define CONTENT_SHELL_SHELL_H_ 6 #define CONTENT_SHELL_SHELL_H_
7 7
8 #pragma once 8 #pragma once
9 9
10 #include <vector> 10 #include <vector>
11 11
12 #include "base/basictypes.h" 12 #include "base/basictypes.h"
13 #include "base/memory/scoped_ptr.h" 13 #include "base/memory/scoped_ptr.h"
14 #include "base/string_piece.h" 14 #include "base/string_piece.h"
15 #include "content/public/browser/web_contents_delegate.h" 15 #include "content/public/browser/web_contents_delegate.h"
16 #include "ui/gfx/native_widget_types.h" 16 #include "ui/gfx/native_widget_types.h"
17 17
18 #if defined(OS_LINUX) 18 #if defined(OS_LINUX)
19 #include <gtk/gtk.h> 19 #include <gtk/gtk.h>
20 #include "ui/base/gtk/gtk_signal.h" 20 #include "ui/base/gtk/gtk_signal.h"
21 21
22 typedef struct _GtkToolItem GtkToolItem; 22 typedef struct _GtkToolItem GtkToolItem;
23 #endif 23 #endif
24 24
25 class GURL; 25 class GURL;
26 class SiteInstance;
27 class TabContents; 26 class TabContents;
28 27
29 namespace content { 28 namespace content {
30
31 class BrowserContext; 29 class BrowserContext;
30 class SiteInstance;
32 31
33 // This represents one window of the Content Shell, i.e. all the UI including 32 // This represents one window of the Content Shell, i.e. all the UI including
34 // buttons and url bar, as well as the web content area. 33 // buttons and url bar, as well as the web content area.
35 class Shell : public WebContentsDelegate { 34 class Shell : public WebContentsDelegate {
36 public: 35 public:
37 virtual ~Shell(); 36 virtual ~Shell();
38 37
39 void LoadURL(const GURL& url); 38 void LoadURL(const GURL& url);
40 void GoBackOrForward(int offset); 39 void GoBackOrForward(int offset);
41 void Reload(); 40 void Reload();
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
150 #endif 149 #endif
151 150
152 // A container of all the open windows. We use a vector so we can keep track 151 // A container of all the open windows. We use a vector so we can keep track
153 // of ordering. 152 // of ordering.
154 static std::vector<Shell*> windows_; 153 static std::vector<Shell*> windows_;
155 }; 154 };
156 155
157 } // namespace content 156 } // namespace content
158 157
159 #endif // CONTENT_SHELL_SHELL_H_ 158 #endif // CONTENT_SHELL_SHELL_H_
OLDNEW
« no previous file with comments | « content/public/browser/web_contents.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698