OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2010 Google Inc. All rights reserved. | 2 * Copyright (C) 2010 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 26 matching lines...) Expand all Loading... |
37 #include "wtf/Forward.h" | 37 #include "wtf/Forward.h" |
38 #include "wtf/Noncopyable.h" | 38 #include "wtf/Noncopyable.h" |
39 #include "wtf/text/WTFString.h" | 39 #include "wtf/text/WTFString.h" |
40 | 40 |
41 namespace blink { | 41 namespace blink { |
42 | 42 |
43 class WebDevToolsClientDelegate; | 43 class WebDevToolsClientDelegate; |
44 class WebViewImpl; | 44 class WebViewImpl; |
45 struct WebDevToolsMessageData; | 45 struct WebDevToolsMessageData; |
46 | 46 |
47 using WTF::String; | |
48 | |
49 class WebDevToolsFrontendImpl FINAL : public WebDevToolsFrontend { | 47 class WebDevToolsFrontendImpl FINAL : public WebDevToolsFrontend { |
50 WTF_MAKE_NONCOPYABLE(WebDevToolsFrontendImpl); | 48 WTF_MAKE_NONCOPYABLE(WebDevToolsFrontendImpl); |
51 public: | 49 public: |
52 WebDevToolsFrontendImpl( | 50 WebDevToolsFrontendImpl( |
53 WebViewImpl*, | 51 WebViewImpl*, |
54 WebDevToolsFrontendClient*, | 52 WebDevToolsFrontendClient*, |
55 const String& applicationLocale); | 53 const String& applicationLocale); |
56 virtual ~WebDevToolsFrontendImpl(); | 54 virtual ~WebDevToolsFrontendImpl(); |
57 | 55 |
58 // WebDevToolsFrontend implementation. | 56 // WebDevToolsFrontend implementation. |
59 virtual void dispatchOnInspectorFrontend(const WebString& message) OVERRIDE; | 57 virtual void dispatchOnInspectorFrontend(const WebString& message) OVERRIDE; |
60 | 58 |
61 private: | 59 private: |
62 class InspectorFrontendResumeObserver; | 60 class InspectorFrontendResumeObserver; |
63 void resume(); | 61 void resume(); |
64 void maybeDispatch(Timer<WebDevToolsFrontendImpl>*); | 62 void maybeDispatch(Timer<WebDevToolsFrontendImpl>*); |
65 void doDispatchOnInspectorFrontend(const WebString& message); | 63 void doDispatchOnInspectorFrontend(const WebString& message); |
66 | 64 |
67 WebViewImpl* m_webViewImpl; | 65 WebViewImpl* m_webViewImpl; |
68 WebDevToolsFrontendClient* m_client; | 66 WebDevToolsFrontendClient* m_client; |
69 String m_applicationLocale; | 67 String m_applicationLocale; |
70 OwnPtr<InspectorFrontendResumeObserver> m_inspectorFrontendResumeObserver; | 68 OwnPtr<InspectorFrontendResumeObserver> m_inspectorFrontendResumeObserver; |
71 Deque<WebString> m_messages; | 69 Deque<WebString> m_messages; |
72 Timer<WebDevToolsFrontendImpl> m_inspectorFrontendDispatchTimer; | 70 Timer<WebDevToolsFrontendImpl> m_inspectorFrontendDispatchTimer; |
73 }; | 71 }; |
74 | 72 |
75 } // namespace blink | 73 } // namespace blink |
76 | 74 |
77 #endif | 75 #endif |
OLD | NEW |