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

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

Issue 409883007: Mojo: add support for cookies to HTMLViewer. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: add missing files 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_BLINK_PLATFORM_IMPL_H_ 5 #ifndef MOJO_SERVICES_HTML_VIEWER_BLINK_PLATFORM_IMPL_H_
6 #define MOJO_SERVICES_HTML_VIEWER_BLINK_PLATFORM_IMPL_H_ 6 #define MOJO_SERVICES_HTML_VIEWER_BLINK_PLATFORM_IMPL_H_
7 7
8 #include "base/memory/scoped_ptr.h"
8 #include "base/message_loop/message_loop.h" 9 #include "base/message_loop/message_loop.h"
9 #include "base/threading/thread_local_storage.h" 10 #include "base/threading/thread_local_storage.h"
10 #include "base/timer/timer.h" 11 #include "base/timer/timer.h"
11 #include "mojo/services/html_viewer/webmimeregistry_impl.h" 12 #include "mojo/services/html_viewer/webmimeregistry_impl.h"
12 #include "mojo/services/html_viewer/webthemeengine_impl.h" 13 #include "mojo/services/html_viewer/webthemeengine_impl.h"
13 #include "mojo/services/public/interfaces/network/network_service.mojom.h" 14 #include "mojo/services/public/interfaces/network/network_service.mojom.h"
14 #include "third_party/WebKit/public/platform/Platform.h" 15 #include "third_party/WebKit/public/platform/Platform.h"
15 #include "third_party/WebKit/public/platform/WebScrollbarBehavior.h" 16 #include "third_party/WebKit/public/platform/WebScrollbarBehavior.h"
16 17
17 namespace mojo { 18 namespace mojo {
18 class ApplicationImpl; 19 class ApplicationImpl;
20 class WebCookieJarImpl;
19 21
20 class BlinkPlatformImpl : public blink::Platform { 22 class BlinkPlatformImpl : public blink::Platform {
21 public: 23 public:
22 explicit BlinkPlatformImpl(ApplicationImpl* app); 24 explicit BlinkPlatformImpl(ApplicationImpl* app);
23 virtual ~BlinkPlatformImpl(); 25 virtual ~BlinkPlatformImpl();
24 26
25 // blink::Platform methods: 27 // blink::Platform methods:
28 virtual blink::WebCookieJar* cookieJar();
26 virtual blink::WebMimeRegistry* mimeRegistry(); 29 virtual blink::WebMimeRegistry* mimeRegistry();
27 virtual blink::WebThemeEngine* themeEngine(); 30 virtual blink::WebThemeEngine* themeEngine();
28 virtual blink::WebString defaultLocale(); 31 virtual blink::WebString defaultLocale();
29 virtual double currentTime(); 32 virtual double currentTime();
30 virtual double monotonicallyIncreasingTime(); 33 virtual double monotonicallyIncreasingTime();
31 virtual void cryptographicallyRandomValues( 34 virtual void cryptographicallyRandomValues(
32 unsigned char* buffer, size_t length); 35 unsigned char* buffer, size_t length);
33 virtual void setSharedTimerFiredFunction(void (*func)()); 36 virtual void setSharedTimerFiredFunction(void (*func)());
34 virtual void setSharedTimerFireInterval(double interval_seconds); 37 virtual void setSharedTimerFireInterval(double interval_seconds);
35 virtual void stopSharedTimer(); 38 virtual void stopSharedTimer();
(...skipping 26 matching lines...) Expand all
62 65
63 NetworkServicePtr network_service_; 66 NetworkServicePtr network_service_;
64 base::MessageLoop* main_loop_; 67 base::MessageLoop* main_loop_;
65 base::OneShotTimer<BlinkPlatformImpl> shared_timer_; 68 base::OneShotTimer<BlinkPlatformImpl> shared_timer_;
66 void (*shared_timer_func_)(); 69 void (*shared_timer_func_)();
67 double shared_timer_fire_time_; 70 double shared_timer_fire_time_;
68 bool shared_timer_fire_time_was_set_while_suspended_; 71 bool shared_timer_fire_time_was_set_while_suspended_;
69 int shared_timer_suspended_; // counter 72 int shared_timer_suspended_; // counter
70 base::ThreadLocalStorage::Slot current_thread_slot_; 73 base::ThreadLocalStorage::Slot current_thread_slot_;
71 WebThemeEngineImpl theme_engine_; 74 WebThemeEngineImpl theme_engine_;
75 scoped_ptr<WebCookieJarImpl> cookie_jar_;
72 WebMimeRegistryImpl mime_registry_; 76 WebMimeRegistryImpl mime_registry_;
73 blink::WebScrollbarBehavior scrollbar_behavior_; 77 blink::WebScrollbarBehavior scrollbar_behavior_;
78
79 DISALLOW_COPY_AND_ASSIGN(BlinkPlatformImpl);
74 }; 80 };
75 81
76 } // namespace mojo 82 } // namespace mojo
77 83
78 #endif // MOJO_SERVICES_HTML_VIEWER_BLINK_PLATFORM_IMPL_H_ 84 #endif // MOJO_SERVICES_HTML_VIEWER_BLINK_PLATFORM_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698