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

Side by Side Diff: Source/web/WebSharedWorkerImpl.h

Issue 419203004: DevTools: wrapping arguments addConsoleMessage in ConsoleMessage (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@wrap-not-all-console-args
Patch Set: Created 6 years, 4 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
« no previous file with comments | « Source/web/WebLocalFrameImpl.cpp ('k') | Source/web/WebSharedWorkerImpl.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 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 28 matching lines...) Expand all
39 #include "core/workers/WorkerScriptLoaderClient.h" 39 #include "core/workers/WorkerScriptLoaderClient.h"
40 #include "core/workers/WorkerThread.h" 40 #include "core/workers/WorkerThread.h"
41 #include "public/web/WebContentSecurityPolicy.h" 41 #include "public/web/WebContentSecurityPolicy.h"
42 #include "public/web/WebFrameClient.h" 42 #include "public/web/WebFrameClient.h"
43 #include "public/web/WebSharedWorkerClient.h" 43 #include "public/web/WebSharedWorkerClient.h"
44 #include "wtf/PassOwnPtr.h" 44 #include "wtf/PassOwnPtr.h"
45 #include "wtf/RefPtr.h" 45 #include "wtf/RefPtr.h"
46 #include "wtf/WeakPtr.h" 46 #include "wtf/WeakPtr.h"
47 47
48 namespace blink { 48 namespace blink {
49 class ConsoleMessage;
49 class ResourceResponse; 50 class ResourceResponse;
50 } 51 }
51 52
52 namespace blink { 53 namespace blink {
53 class WebApplicationCacheHost; 54 class WebApplicationCacheHost;
54 class WebApplicationCacheHostClient; 55 class WebApplicationCacheHostClient;
55 class WebWorkerClient; 56 class WebWorkerClient;
56 class WebSecurityOrigin; 57 class WebSecurityOrigin;
57 class WebString; 58 class WebString;
58 class WebURL; 59 class WebURL;
59 class WebView; 60 class WebView;
60 class WebWorker; 61 class WebWorker;
61 class WebSharedWorkerClient; 62 class WebSharedWorkerClient;
62 63
63 // This class is used by the worker process code to talk to the blink::SharedWor ker implementation. 64 // This class is used by the worker process code to talk to the blink::SharedWor ker implementation.
64 // It can't use it directly since it uses WebKit types, so this class converts t he data types. 65 // It can't use it directly since it uses WebKit types, so this class converts t he data types.
65 // When the blink::SharedWorker object wants to call blink::WorkerReportingProxy , this class will 66 // When the blink::SharedWorker object wants to call blink::WorkerReportingProxy , this class will
66 // convert to Chrome data types first and then call the supplied WebCommonWorker Client. 67 // convert to Chrome data types first and then call the supplied WebCommonWorker Client.
67 class WebSharedWorkerImpl FINAL 68 class WebSharedWorkerImpl FINAL
68 : public blink::WorkerReportingProxy 69 : public blink::WorkerReportingProxy
69 , public blink::WorkerLoaderProxy 70 , public blink::WorkerLoaderProxy
70 , public WebFrameClient 71 , public WebFrameClient
71 , public WebSharedWorker { 72 , public WebSharedWorker {
72 public: 73 public:
73 explicit WebSharedWorkerImpl(WebSharedWorkerClient*); 74 explicit WebSharedWorkerImpl(WebSharedWorkerClient*);
74 75
75 // blink::WorkerReportingProxy methods: 76 // blink::WorkerReportingProxy methods:
76 virtual void reportException( 77 virtual void reportException(
77 const WTF::String&, int, int, const WTF::String&) OVERRIDE; 78 const WTF::String&, int, int, const WTF::String&) OVERRIDE;
78 virtual void reportConsoleMessage( 79 virtual void reportConsoleMessage(PassRefPtr<blink::ConsoleMessage>) OVERRID E;
79 blink::MessageSource, blink::MessageLevel,
80 const WTF::String&, int, const WTF::String&) OVERRIDE;
81 virtual void postMessageToPageInspector(const WTF::String&) OVERRIDE; 80 virtual void postMessageToPageInspector(const WTF::String&) OVERRIDE;
82 virtual void updateInspectorStateCookie(const WTF::String&) OVERRIDE; 81 virtual void updateInspectorStateCookie(const WTF::String&) OVERRIDE;
83 virtual void workerGlobalScopeStarted(blink::WorkerGlobalScope*) OVERRIDE; 82 virtual void workerGlobalScopeStarted(blink::WorkerGlobalScope*) OVERRIDE;
84 virtual void workerGlobalScopeClosed() OVERRIDE; 83 virtual void workerGlobalScopeClosed() OVERRIDE;
85 virtual void workerGlobalScopeDestroyed() OVERRIDE; 84 virtual void workerGlobalScopeDestroyed() OVERRIDE;
86 virtual void willDestroyWorkerGlobalScope() OVERRIDE { } 85 virtual void willDestroyWorkerGlobalScope() OVERRIDE { }
87 86
88 // blink::WorkerLoaderProxy methods: 87 // blink::WorkerLoaderProxy methods:
89 virtual void postTaskToLoader(PassOwnPtr<blink::ExecutionContextTask>) OVERR IDE; 88 virtual void postTaskToLoader(PassOwnPtr<blink::ExecutionContextTask>) OVERR IDE;
90 virtual bool postTaskToWorkerGlobalScope(PassOwnPtr<blink::ExecutionContextT ask>) OVERRIDE; 89 virtual bool postTaskToWorkerGlobalScope(PassOwnPtr<blink::ExecutionContextT ask>) OVERRIDE;
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
153 OwnPtr<Loader> m_mainScriptLoader; 152 OwnPtr<Loader> m_mainScriptLoader;
154 WebURL m_url; 153 WebURL m_url;
155 WebString m_name; 154 WebString m_name;
156 WebString m_contentSecurityPolicy; 155 WebString m_contentSecurityPolicy;
157 WebContentSecurityPolicyType m_policyType; 156 WebContentSecurityPolicyType m_policyType;
158 }; 157 };
159 158
160 } // namespace blink 159 } // namespace blink
161 160
162 #endif 161 #endif
OLDNEW
« no previous file with comments | « Source/web/WebLocalFrameImpl.cpp ('k') | Source/web/WebSharedWorkerImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698