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

Side by Side Diff: content/renderer/web_ui_mojo.h

Issue 275453002: Update WebFrameClient::didClearWindowObject API (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 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/renderer/render_view_impl.cc ('k') | content/renderer/web_ui_mojo.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_RENDERER_WEB_UI_MOJO_H_ 5 #ifndef CONTENT_RENDERER_WEB_UI_MOJO_H_
6 #define CONTENT_RENDERER_WEB_UI_MOJO_H_ 6 #define CONTENT_RENDERER_WEB_UI_MOJO_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "content/public/renderer/render_frame_observer.h" 10 #include "content/public/renderer/render_frame_observer.h"
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 // Invoked when the frame finishes loading. Invokes SetHandleOnContextState() 58 // Invoked when the frame finishes loading. Invokes SetHandleOnContextState()
59 // if necessary. 59 // if necessary.
60 void OnDidFinishDocumentLoad(); 60 void OnDidFinishDocumentLoad();
61 61
62 // Invokes SetHandle() on the WebUIMojoContextState (if there is one). 62 // Invokes SetHandle() on the WebUIMojoContextState (if there is one).
63 void SetHandleOnContextState(mojo::ScopedMessagePipeHandle handle); 63 void SetHandleOnContextState(mojo::ScopedMessagePipeHandle handle);
64 64
65 WebUIMojoContextState* GetContextState(); 65 WebUIMojoContextState* GetContextState();
66 66
67 // RenderViewObserver overrides: 67 // RenderViewObserver overrides:
68 virtual void DidClearWindowObject(blink::WebLocalFrame* frame, 68 virtual void DidClearWindowObject(blink::WebLocalFrame* frame) OVERRIDE;
69 int world_id) OVERRIDE;
70 69
71 MainFrameObserver main_frame_observer_; 70 MainFrameObserver main_frame_observer_;
72 71
73 // Set to true in DidFinishDocumentLoad(). 'main' is only executed once this 72 // Set to true in DidFinishDocumentLoad(). 'main' is only executed once this
74 // happens. 73 // happens.
75 bool did_finish_document_load_; 74 bool did_finish_document_load_;
76 75
77 // If SetBrowserHandle() is invoked before the document finishes loading the 76 // If SetBrowserHandle() is invoked before the document finishes loading the
78 // MessagePipeHandle is stored here. When the document finishes loading 77 // MessagePipeHandle is stored here. When the document finishes loading
79 // SetHandleOnContextState() is invoked to send the handle to the 78 // SetHandleOnContextState() is invoked to send the handle to the
80 // WebUIMojoContextState and ultimately the page. 79 // WebUIMojoContextState and ultimately the page.
81 mojo::ScopedMessagePipeHandle pending_handle_; 80 mojo::ScopedMessagePipeHandle pending_handle_;
82 81
83 DISALLOW_COPY_AND_ASSIGN(WebUIMojo); 82 DISALLOW_COPY_AND_ASSIGN(WebUIMojo);
84 }; 83 };
85 84
86 } // namespace content 85 } // namespace content
87 86
88 #endif // CONTENT_RENDERER_WEB_UI_MOJO_H_ 87 #endif // CONTENT_RENDERER_WEB_UI_MOJO_H_
OLDNEW
« no previous file with comments | « content/renderer/render_view_impl.cc ('k') | content/renderer/web_ui_mojo.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698