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

Side by Side Diff: content/public/browser/web_contents_delegate.h

Issue 11231077: Move a bunch more code into the content namespace. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 1 month 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 CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_DELEGATE_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_DELEGATE_H_
6 #define CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_DELEGATE_H_ 6 #define CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_DELEGATE_H_
7 7
8 #include <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 10
11 #include "base/basictypes.h" 11 #include "base/basictypes.h"
12 #include "base/callback.h" 12 #include "base/callback.h"
13 #include "base/string16.h" 13 #include "base/string16.h"
14 #include "content/common/content_export.h" 14 #include "content/common/content_export.h"
15 #include "content/public/browser/navigation_type.h" 15 #include "content/public/browser/navigation_type.h"
16 #include "content/public/common/media_stream_request.h" 16 #include "content/public/common/media_stream_request.h"
17 #include "content/public/common/page_transition_types.h" 17 #include "content/public/common/page_transition_types.h"
18 #include "content/public/common/window_container_type.h" 18 #include "content/public/common/window_container_type.h"
19 #include "third_party/skia/include/core/SkColor.h" 19 #include "third_party/skia/include/core/SkColor.h"
20 #include "ui/gfx/native_widget_types.h" 20 #include "ui/gfx/native_widget_types.h"
21 #include "ui/gfx/rect_f.h" 21 #include "ui/gfx/rect_f.h"
22 #include "webkit/glue/window_open_disposition.h" 22 #include "webkit/glue/window_open_disposition.h"
23 23
24 class FilePath; 24 class FilePath;
25 class GURL; 25 class GURL;
26 class WebContentsImpl;
27 26
28 namespace base { 27 namespace base {
29 class ListValue; 28 class ListValue;
30 } 29 }
31 30
32 namespace content { 31 namespace content {
33 class BrowserContext; 32 class BrowserContext;
34 class ColorChooser; 33 class ColorChooser;
35 class DownloadItem; 34 class DownloadItem;
36 class JavaScriptDialogCreator; 35 class JavaScriptDialogCreator;
37 class RenderViewHost; 36 class RenderViewHost;
38 class WebContents; 37 class WebContents;
38 class WebContentsImpl;
39 class WebIntentsDispatcher; 39 class WebIntentsDispatcher;
40 struct ContextMenuParams; 40 struct ContextMenuParams;
41 struct FileChooserParams; 41 struct FileChooserParams;
42 struct NativeWebKeyboardEvent; 42 struct NativeWebKeyboardEvent;
43 struct SSLStatus; 43 struct SSLStatus;
44 } 44 }
45 45
46 namespace gfx { 46 namespace gfx {
47 class Point; 47 class Point;
48 class Rect; 48 class Rect;
(...skipping 378 matching lines...) Expand 10 before | Expand all | Expand 10 after
427 // Called before a compositing layer becomes invalid so the delegate can 427 // Called before a compositing layer becomes invalid so the delegate can
428 // remove it from the layer tree. 428 // remove it from the layer tree.
429 virtual void RemoveLayer(WebContents* web_contents, 429 virtual void RemoveLayer(WebContents* web_contents,
430 WebKit::WebLayer* layer) {} 430 WebKit::WebLayer* layer) {}
431 #endif 431 #endif
432 432
433 protected: 433 protected:
434 virtual ~WebContentsDelegate(); 434 virtual ~WebContentsDelegate();
435 435
436 private: 436 private:
437 friend class ::WebContentsImpl; 437 friend class WebContentsImpl;
438 438
439 // Called when |this| becomes the WebContentsDelegate for |source|. 439 // Called when |this| becomes the WebContentsDelegate for |source|.
440 void Attach(WebContents* source); 440 void Attach(WebContents* source);
441 441
442 // Called when |this| is no longer the WebContentsDelegate for |source|. 442 // Called when |this| is no longer the WebContentsDelegate for |source|.
443 void Detach(WebContents* source); 443 void Detach(WebContents* source);
444 444
445 // The WebContents that this is currently a delegate for. 445 // The WebContents that this is currently a delegate for.
446 std::set<WebContents*> attached_contents_; 446 std::set<WebContents*> attached_contents_;
447 }; 447 };
448 448
449 } // namespace content 449 } // namespace content
450 450
451 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_DELEGATE_H_ 451 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_DELEGATE_H_
OLDNEW
« no previous file with comments | « content/common/web_database_observer_impl.cc ('k') | content/public/browser/web_contents_observer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698