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

Side by Side Diff: mojo/examples/html_viewer/html_document_view.h

Issue 373373002: Mojo: Refactor URLLoader interface. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fixes per review Created 6 years, 5 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 | « no previous file | mojo/examples/html_viewer/html_document_view.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 MOJO_EXAMPLES_HTML_VIEWER_HTML_DOCUMENT_VIEW_H_ 5 #ifndef MOJO_EXAMPLES_HTML_VIEWER_HTML_DOCUMENT_VIEW_H_
6 #define MOJO_EXAMPLES_HTML_VIEWER_HTML_DOCUMENT_VIEW_H_ 6 #define MOJO_EXAMPLES_HTML_VIEWER_HTML_DOCUMENT_VIEW_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/memory/weak_ptr.h" 9 #include "base/memory/weak_ptr.h"
10 #include "mojo/public/cpp/application/lazy_interface_ptr.h" 10 #include "mojo/public/cpp/application/lazy_interface_ptr.h"
(...skipping 18 matching lines...) Expand all
29 class HTMLDocumentView : public blink::WebViewClient, 29 class HTMLDocumentView : public blink::WebViewClient,
30 public blink::WebFrameClient, 30 public blink::WebFrameClient,
31 public view_manager::ViewObserver { 31 public view_manager::ViewObserver {
32 public: 32 public:
33 HTMLDocumentView(ServiceProvider* service_provider, 33 HTMLDocumentView(ServiceProvider* service_provider,
34 view_manager::ViewManager* view_manager); 34 view_manager::ViewManager* view_manager);
35 virtual ~HTMLDocumentView(); 35 virtual ~HTMLDocumentView();
36 36
37 void AttachToNode(view_manager::Node* node); 37 void AttachToNode(view_manager::Node* node);
38 38
39 void Load(URLResponsePtr response, 39 void Load(URLResponsePtr response);
40 ScopedDataPipeConsumerHandle response_body_stream);
41 40
42 private: 41 private:
43 // WebViewClient methods: 42 // WebViewClient methods:
44 virtual blink::WebStorageNamespace* createSessionStorageNamespace(); 43 virtual blink::WebStorageNamespace* createSessionStorageNamespace();
45 44
46 // WebWidgetClient methods: 45 // WebWidgetClient methods:
47 virtual void didInvalidateRect(const blink::WebRect& rect); 46 virtual void didInvalidateRect(const blink::WebRect& rect);
48 virtual bool allowsBrokenNullLayerTreeView() const; 47 virtual bool allowsBrokenNullLayerTreeView() const;
49 48
50 // WebFrameClient methods: 49 // WebFrameClient methods:
(...skipping 24 matching lines...) Expand all
75 LazyInterfacePtr<navigation::NavigatorHost> navigator_host_; 74 LazyInterfacePtr<navigation::NavigatorHost> navigator_host_;
76 75
77 base::WeakPtrFactory<HTMLDocumentView> weak_factory_; 76 base::WeakPtrFactory<HTMLDocumentView> weak_factory_;
78 DISALLOW_COPY_AND_ASSIGN(HTMLDocumentView); 77 DISALLOW_COPY_AND_ASSIGN(HTMLDocumentView);
79 }; 78 };
80 79
81 } // namespace examples 80 } // namespace examples
82 } // namespace mojo 81 } // namespace mojo
83 82
84 #endif // MOJO_EXAMPLES_HTML_VIEWER_HTML_DOCUMENT_VIEW_H_ 83 #endif // MOJO_EXAMPLES_HTML_VIEWER_HTML_DOCUMENT_VIEW_H_
OLDNEW
« no previous file with comments | « no previous file | mojo/examples/html_viewer/html_document_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698