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

Side by Side Diff: sky/viewer/platform/platform_impl.h

Issue 776743002: Make v8 inspector not crash (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years 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 | « sky/engine/v8_inspector/read_from_source_tree.cc ('k') | sky/viewer/platform/platform_impl.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 SKY_VIEWER_PLATFORM_PLATFORM_IMPL_H_ 5 #ifndef SKY_VIEWER_PLATFORM_PLATFORM_IMPL_H_
6 #define SKY_VIEWER_PLATFORM_PLATFORM_IMPL_H_ 6 #define SKY_VIEWER_PLATFORM_PLATFORM_IMPL_H_
7 7
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "base/message_loop/message_loop.h" 9 #include "base/message_loop/message_loop.h"
10 #include "base/threading/thread_local_storage.h" 10 #include "base/threading/thread_local_storage.h"
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 const char** arg_names, 58 const char** arg_names,
59 const unsigned char* arg_types, 59 const unsigned char* arg_types,
60 const unsigned long long* arg_values, 60 const unsigned long long* arg_values,
61 const blink::WebConvertableToTraceFormat* convertable_values, 61 const blink::WebConvertableToTraceFormat* convertable_values,
62 unsigned char flags); 62 unsigned char flags);
63 virtual void updateTraceEventDuration( 63 virtual void updateTraceEventDuration(
64 const unsigned char* category_group_enabled, 64 const unsigned char* category_group_enabled,
65 const char* name, 65 const char* name,
66 TraceEventHandle); 66 TraceEventHandle);
67 67
68 virtual blink::WebData loadResource(const char* name);
69
70 private: 68 private:
71 void SuspendSharedTimer(); 69 void SuspendSharedTimer();
72 void ResumeSharedTimer(); 70 void ResumeSharedTimer();
73 71
74 void DoTimeout() { 72 void DoTimeout() {
75 if (shared_timer_func_ && !shared_timer_suspended_) 73 if (shared_timer_func_ && !shared_timer_suspended_)
76 shared_timer_func_(); 74 shared_timer_func_();
77 } 75 }
78 76
79 mojo::NetworkServicePtr network_service_; 77 mojo::NetworkServicePtr network_service_;
80 base::MessageLoop* main_loop_; 78 base::MessageLoop* main_loop_;
81 scoped_refptr<base::SingleThreadTaskRunner> main_thread_task_runner_; 79 scoped_refptr<base::SingleThreadTaskRunner> main_thread_task_runner_;
82 base::OneShotTimer<PlatformImpl> shared_timer_; 80 base::OneShotTimer<PlatformImpl> shared_timer_;
83 void (*shared_timer_func_)(); 81 void (*shared_timer_func_)();
84 double shared_timer_fire_time_; 82 double shared_timer_fire_time_;
85 bool shared_timer_fire_time_was_set_while_suspended_; 83 bool shared_timer_fire_time_was_set_while_suspended_;
86 int shared_timer_suspended_; // counter 84 int shared_timer_suspended_; // counter
87 85
88 DISALLOW_COPY_AND_ASSIGN(PlatformImpl); 86 DISALLOW_COPY_AND_ASSIGN(PlatformImpl);
89 }; 87 };
90 88
91 } // namespace sky 89 } // namespace sky
92 90
93 #endif // SKY_VIEWER_PLATFORM_PLATFORM_IMPL_H_ 91 #endif // SKY_VIEWER_PLATFORM_PLATFORM_IMPL_H_
OLDNEW
« no previous file with comments | « sky/engine/v8_inspector/read_from_source_tree.cc ('k') | sky/viewer/platform/platform_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698