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

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

Issue 409883007: Mojo: add support for cookies to HTMLViewer. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: apply review feedback 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
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_SERVICES_HTML_VIEWER_HTML_DOCUMENT_VIEW_H_ 5 #ifndef MOJO_SERVICES_HTML_VIEWER_HTML_DOCUMENT_VIEW_H_
6 #define MOJO_SERVICES_HTML_VIEWER_HTML_DOCUMENT_VIEW_H_ 6 #define MOJO_SERVICES_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 29 matching lines...) Expand all
40 40
41 private: 41 private:
42 // WebViewClient methods: 42 // WebViewClient methods:
43 virtual blink::WebStorageNamespace* createSessionStorageNamespace(); 43 virtual blink::WebStorageNamespace* createSessionStorageNamespace();
44 44
45 // WebWidgetClient methods: 45 // WebWidgetClient methods:
46 virtual void didInvalidateRect(const blink::WebRect& rect); 46 virtual void didInvalidateRect(const blink::WebRect& rect);
47 virtual bool allowsBrokenNullLayerTreeView() const; 47 virtual bool allowsBrokenNullLayerTreeView() const;
48 48
49 // WebFrameClient methods: 49 // WebFrameClient methods:
50 virtual blink::WebCookieJar* cookieJar(blink::WebLocalFrame* frame);
50 virtual blink::WebNavigationPolicy decidePolicyForNavigation( 51 virtual blink::WebNavigationPolicy decidePolicyForNavigation(
51 blink::WebLocalFrame* frame, blink::WebDataSource::ExtraData* data, 52 blink::WebLocalFrame* frame, blink::WebDataSource::ExtraData* data,
52 const blink::WebURLRequest& request, blink::WebNavigationType nav_type, 53 const blink::WebURLRequest& request, blink::WebNavigationType nav_type,
53 blink::WebNavigationPolicy default_policy, bool isRedirect) OVERRIDE; 54 blink::WebNavigationPolicy default_policy, bool isRedirect);
54 virtual void didAddMessageToConsole( 55 virtual void didAddMessageToConsole(
55 const blink::WebConsoleMessage& message, 56 const blink::WebConsoleMessage& message,
56 const blink::WebString& source_name, 57 const blink::WebString& source_name,
57 unsigned source_line, 58 unsigned source_line,
58 const blink::WebString& stack_trace) OVERRIDE; 59 const blink::WebString& stack_trace);
59 virtual void didNavigateWithinPage( 60 virtual void didNavigateWithinPage(
60 blink::WebLocalFrame* frame, 61 blink::WebLocalFrame* frame,
61 const blink::WebHistoryItem& history_item, 62 const blink::WebHistoryItem& history_item,
62 blink::WebHistoryCommitType commit_type) OVERRIDE; 63 blink::WebHistoryCommitType commit_type);
63 64
64 // ViewObserver methods: 65 // ViewObserver methods:
65 virtual void OnViewInputEvent(view_manager::View* view, 66 virtual void OnViewInputEvent(view_manager::View* view,
66 const EventPtr& event) OVERRIDE; 67 const EventPtr& event) OVERRIDE;
67 68
68 // NodeObserver methods: 69 // NodeObserver methods:
69 virtual void OnNodeBoundsChanged(view_manager::Node* node, 70 virtual void OnNodeBoundsChanged(view_manager::Node* node,
70 const gfx::Rect& old_bounds, 71 const gfx::Rect& old_bounds,
71 const gfx::Rect& new_bounds) OVERRIDE; 72 const gfx::Rect& new_bounds) OVERRIDE;
72 virtual void OnNodeDestroyed(view_manager::Node* node) OVERRIDE; 73 virtual void OnNodeDestroyed(view_manager::Node* node) OVERRIDE;
73 74
74 void Repaint(); 75 void Repaint();
75 76
76 view_manager::ViewManager* view_manager_; 77 view_manager::ViewManager* view_manager_;
77 view_manager::View* view_; 78 view_manager::View* view_;
78 blink::WebView* web_view_; 79 blink::WebView* web_view_;
79 view_manager::Node* root_; 80 view_manager::Node* root_;
80 bool repaint_pending_; 81 bool repaint_pending_;
81 LazyInterfacePtr<navigation::NavigatorHost> navigator_host_; 82 LazyInterfacePtr<navigation::NavigatorHost> navigator_host_;
82 83
83 base::WeakPtrFactory<HTMLDocumentView> weak_factory_; 84 base::WeakPtrFactory<HTMLDocumentView> weak_factory_;
84 DISALLOW_COPY_AND_ASSIGN(HTMLDocumentView); 85 DISALLOW_COPY_AND_ASSIGN(HTMLDocumentView);
85 }; 86 };
86 87
87 } // namespace mojo 88 } // namespace mojo
88 89
89 #endif // MOJO_SERVICES_HTML_VIEWER_HTML_DOCUMENT_VIEW_H_ 90 #endif // MOJO_SERVICES_HTML_VIEWER_HTML_DOCUMENT_VIEW_H_
OLDNEW
« no previous file with comments | « mojo/services/html_viewer/blink_platform_impl.cc ('k') | mojo/services/html_viewer/html_document_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698