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

Side by Side Diff: components/html_viewer/document_resource_waiter.cc

Issue 1270313006: Connects PostMessage() for OOPIFs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix windows Created 5 years, 4 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
« no previous file with comments | « components/html_viewer/document_resource_waiter.h ('k') | components/html_viewer/html_frame.h » ('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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 #include "components/html_viewer/document_resource_waiter.h" 5 #include "components/html_viewer/document_resource_waiter.h"
6 6
7 #include "components/html_viewer/global_state.h" 7 #include "components/html_viewer/global_state.h"
8 #include "components/html_viewer/html_document_oopif.h" 8 #include "components/html_viewer/html_document_oopif.h"
9 #include "components/html_viewer/html_frame_tree_manager.h" 9 #include "components/html_viewer/html_frame_tree_manager.h"
10 #include "components/view_manager/public/cpp/view.h" 10 #include "components/view_manager/public/cpp/view.h"
11 11
12 #if defined(OS_WIN) && defined(PostMessage)
13 #undef PostMessage
14 #endif
15
12 namespace html_viewer { 16 namespace html_viewer {
13 17
14 DocumentResourceWaiter::DocumentResourceWaiter(GlobalState* global_state, 18 DocumentResourceWaiter::DocumentResourceWaiter(GlobalState* global_state,
15 mojo::URLResponsePtr response, 19 mojo::URLResponsePtr response,
16 HTMLDocumentOOPIF* document) 20 HTMLDocumentOOPIF* document)
17 : global_state_(global_state), 21 : global_state_(global_state),
18 document_(document), 22 document_(document),
19 response_(response.Pass()), 23 response_(response.Pass()),
20 root_(nullptr), 24 root_(nullptr),
21 change_id_(0u), 25 change_id_(0u),
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 } 86 }
83 87
84 void DocumentResourceWaiter::OnFrameClientPropertyChanged( 88 void DocumentResourceWaiter::OnFrameClientPropertyChanged(
85 uint32_t frame_id, 89 uint32_t frame_id,
86 const mojo::String& name, 90 const mojo::String& name,
87 mojo::Array<uint8_t> new_value) { 91 mojo::Array<uint8_t> new_value) {
88 // It is assumed we receive OnConnect() (which unbinds) before anything else. 92 // It is assumed we receive OnConnect() (which unbinds) before anything else.
89 NOTREACHED(); 93 NOTREACHED();
90 } 94 }
91 95
96 void DocumentResourceWaiter::PostMessage(uint32_t source_frame_id,
97 uint32_t target_frame_id,
98 mandoline::HTMLMessageEventPtr event) {
99 // It is assumed we receive OnConnect() (which unbinds) before anything else.
100 NOTREACHED();
101 }
102
92 } // namespace html_viewer 103 } // namespace html_viewer
OLDNEW
« no previous file with comments | « components/html_viewer/document_resource_waiter.h ('k') | components/html_viewer/html_frame.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698