| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_ |
| 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| 11 | 11 |
| 12 #include "base/logging.h" | 12 #include "base/logging.h" |
| 13 #include "base/memory/scoped_ptr.h" | 13 #include "base/memory/scoped_ptr.h" |
| 14 #include "base/observer_list.h" | 14 #include "base/observer_list.h" |
| 15 #include "base/process_util.h" | 15 #include "base/process_util.h" |
| 16 #include "content/browser/renderer_host/render_widget_host.h" | 16 #include "content/browser/renderer_host/render_widget_host.h" |
| 17 #include "content/common/content_export.h" |
| 17 #include "content/common/window_container_type.h" | 18 #include "content/common/window_container_type.h" |
| 18 #include "net/base/load_states.h" | 19 #include "net/base/load_states.h" |
| 19 #include "third_party/WebKit/Source/WebKit/chromium/public/WebConsoleMessage.h" | 20 #include "third_party/WebKit/Source/WebKit/chromium/public/WebConsoleMessage.h" |
| 20 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDragOperation.h" | 21 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDragOperation.h" |
| 21 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPopupType.h" | 22 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPopupType.h" |
| 22 #include "third_party/WebKit/Source/WebKit/chromium/public/WebTextDirection.h" | 23 #include "third_party/WebKit/Source/WebKit/chromium/public/WebTextDirection.h" |
| 23 #include "webkit/glue/webaccessibility.h" | 24 #include "webkit/glue/webaccessibility.h" |
| 24 #include "webkit/glue/window_open_disposition.h" | 25 #include "webkit/glue/window_open_disposition.h" |
| 25 | 26 |
| 26 class ChildProcessSecurityPolicy; | 27 class ChildProcessSecurityPolicy; |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 87 // contain things that are not relevant to a common subset of views. See also | 88 // contain things that are not relevant to a common subset of views. See also |
| 88 // the comment in render_view_host_delegate.h about the size and scope of the | 89 // the comment in render_view_host_delegate.h about the size and scope of the |
| 89 // delegate API. | 90 // delegate API. |
| 90 // | 91 // |
| 91 // Right now, the concept of page navigation (both top level and frame) exists | 92 // Right now, the concept of page navigation (both top level and frame) exists |
| 92 // in the TabContents still, so if you instantiate one of these elsewhere, you | 93 // in the TabContents still, so if you instantiate one of these elsewhere, you |
| 93 // will not be able to traverse pages back and forward. We need to determine | 94 // will not be able to traverse pages back and forward. We need to determine |
| 94 // if we want to bring that and other functionality down into this object so | 95 // if we want to bring that and other functionality down into this object so |
| 95 // it can be shared by others. | 96 // it can be shared by others. |
| 96 // | 97 // |
| 97 class RenderViewHost : public RenderWidgetHost { | 98 class CONTENT_EXPORT RenderViewHost : public RenderWidgetHost { |
| 98 public: | 99 public: |
| 99 // Returns the RenderViewHost given its ID and the ID of its render process. | 100 // Returns the RenderViewHost given its ID and the ID of its render process. |
| 100 // Returns NULL if the IDs do not correspond to a live RenderViewHost. | 101 // Returns NULL if the IDs do not correspond to a live RenderViewHost. |
| 101 static RenderViewHost* FromID(int render_process_id, int render_view_id); | 102 static RenderViewHost* FromID(int render_process_id, int render_view_id); |
| 102 | 103 |
| 103 // routing_id could be a valid route id, or it could be MSG_ROUTING_NONE, in | 104 // routing_id could be a valid route id, or it could be MSG_ROUTING_NONE, in |
| 104 // which case RenderWidgetHost will create a new one. | 105 // which case RenderWidgetHost will create a new one. |
| 105 // | 106 // |
| 106 // The session storage namespace parameter allows multiple render views and | 107 // The session storage namespace parameter allows multiple render views and |
| 107 // tab contentses to share the same session storage (part of the WebStorage | 108 // tab contentses to share the same session storage (part of the WebStorage |
| (...skipping 451 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 559 // The termination status of the last render view that terminated. | 560 // The termination status of the last render view that terminated. |
| 560 base::TerminationStatus render_view_termination_status_; | 561 base::TerminationStatus render_view_termination_status_; |
| 561 | 562 |
| 562 // A list of observers that filter messages. Weak references. | 563 // A list of observers that filter messages. Weak references. |
| 563 ObserverList<RenderViewHostObserver> observers_; | 564 ObserverList<RenderViewHostObserver> observers_; |
| 564 | 565 |
| 565 DISALLOW_COPY_AND_ASSIGN(RenderViewHost); | 566 DISALLOW_COPY_AND_ASSIGN(RenderViewHost); |
| 566 }; | 567 }; |
| 567 | 568 |
| 568 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_ | 569 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_ |
| OLD | NEW |