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

Side by Side Diff: components/html_viewer/html_document_application_delegate.h

Issue 1678923003: Rename ServiceConnector to InterfaceBinder. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@connection
Patch Set: . Created 4 years, 10 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 | « no previous file | components/html_viewer/html_document_application_delegate.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 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 #ifndef COMPONENTS_HTML_VIEWER_HTML_DOCUMENT_APPLICATION_DELEGATE_H_ 5 #ifndef COMPONENTS_HTML_VIEWER_HTML_DOCUMENT_APPLICATION_DELEGATE_H_
6 #define COMPONENTS_HTML_VIEWER_HTML_DOCUMENT_APPLICATION_DELEGATE_H_ 6 #define COMPONENTS_HTML_VIEWER_HTML_DOCUMENT_APPLICATION_DELEGATE_H_
7 7
8 #include <set> 8 #include <set>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 19 matching lines...) Expand all
30 mojo::ShellClientRequest request, 30 mojo::ShellClientRequest request,
31 mojo::URLResponsePtr response, 31 mojo::URLResponsePtr response,
32 GlobalState* global_state, 32 GlobalState* global_state,
33 scoped_ptr<mojo::AppRefCount> parent_app_refcount, 33 scoped_ptr<mojo::AppRefCount> parent_app_refcount,
34 const mojo::Callback<void()>& destruct_callback); 34 const mojo::Callback<void()>& destruct_callback);
35 35
36 void set_html_factory(HTMLFactory* factory) { html_factory_ = factory; } 36 void set_html_factory(HTMLFactory* factory) { html_factory_ = factory; }
37 HTMLFactory* html_factory() { return html_factory_; } 37 HTMLFactory* html_factory() { return html_factory_; }
38 38
39 private: 39 private:
40 class ServiceConnectorQueue; 40 class InterfaceBinderQueue;
41 41
42 ~HTMLDocumentApplicationDelegate() override; 42 ~HTMLDocumentApplicationDelegate() override;
43 43
44 // Callback from the quit closure. We key off this rather than 44 // Callback from the quit closure. We key off this rather than
45 // ShellClient::Quit() as we don't want to shut down the messageloop 45 // ShellClient::Quit() as we don't want to shut down the messageloop
46 // when we quit (the messageloop is shared among multiple 46 // when we quit (the messageloop is shared among multiple
47 // HTMLDocumentApplicationDelegates). 47 // HTMLDocumentApplicationDelegates).
48 void OnTerminate(); 48 void OnTerminate();
49 49
50 // mojo::ShellClient: 50 // mojo::ShellClient:
51 void Initialize(mojo::Shell* shell, const std::string& url, 51 void Initialize(mojo::Shell* shell, const std::string& url,
52 uint32_t id) override; 52 uint32_t id) override;
53 bool AcceptConnection(mojo::Connection* connection) override; 53 bool AcceptConnection(mojo::Connection* connection) override;
54 54
55 void OnHTMLDocumentDeleted2(HTMLDocument* document); 55 void OnHTMLDocumentDeleted2(HTMLDocument* document);
56 void OnResponseReceived(scoped_ptr<mojo::AppRefCount> app_refcount, 56 void OnResponseReceived(scoped_ptr<mojo::AppRefCount> app_refcount,
57 mojo::URLLoaderPtr loader, 57 mojo::URLLoaderPtr loader,
58 mojo::Connection* connection, 58 mojo::Connection* connection,
59 scoped_ptr<ServiceConnectorQueue> connector_queue, 59 scoped_ptr<InterfaceBinderQueue> binder_queue,
60 mojo::URLResponsePtr response); 60 mojo::URLResponsePtr response);
61 61
62 // HTMLFactory: 62 // HTMLFactory:
63 HTMLFrame* CreateHTMLFrame(HTMLFrame::CreateParams* params) override; 63 HTMLFrame* CreateHTMLFrame(HTMLFrame::CreateParams* params) override;
64 HTMLWidgetRootLocal* CreateHTMLWidgetRootLocal( 64 HTMLWidgetRootLocal* CreateHTMLWidgetRootLocal(
65 HTMLWidgetRootLocal::CreateParams* params) override; 65 HTMLWidgetRootLocal::CreateParams* params) override;
66 66
67 mojo::ShellConnection app_; 67 mojo::ShellConnection app_;
68 // AppRefCount of the parent (HTMLViewer). 68 // AppRefCount of the parent (HTMLViewer).
69 scoped_ptr<mojo::AppRefCount> parent_app_refcount_; 69 scoped_ptr<mojo::AppRefCount> parent_app_refcount_;
(...skipping 11 matching lines...) Expand all
81 mojo::Callback<void()> destruct_callback_; 81 mojo::Callback<void()> destruct_callback_;
82 82
83 base::WeakPtrFactory<HTMLDocumentApplicationDelegate> weak_factory_; 83 base::WeakPtrFactory<HTMLDocumentApplicationDelegate> weak_factory_;
84 84
85 DISALLOW_COPY_AND_ASSIGN(HTMLDocumentApplicationDelegate); 85 DISALLOW_COPY_AND_ASSIGN(HTMLDocumentApplicationDelegate);
86 }; 86 };
87 87
88 } // namespace html_viewer 88 } // namespace html_viewer
89 89
90 #endif // COMPONENTS_HTML_VIEWER_HTML_DOCUMENT_APPLICATION_DELEGATE_H_ 90 #endif // COMPONENTS_HTML_VIEWER_HTML_DOCUMENT_APPLICATION_DELEGATE_H_
OLDNEW
« no previous file with comments | « no previous file | components/html_viewer/html_document_application_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698