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

Side by Side Diff: third_party/WebKit/public/platform/Platform.h

Issue 2775483003: Use public Service Manager Connector API in Blink (Closed)
Patch Set: . Created 3 years, 8 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 | « third_party/WebKit/public/platform/Connector.h ('k') | no next file » | 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) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 #include "WebVector.h" 57 #include "WebVector.h"
58 #include "base/metrics/user_metrics_action.h" 58 #include "base/metrics/user_metrics_action.h"
59 #include "cc/resources/shared_bitmap.h" 59 #include "cc/resources/shared_bitmap.h"
60 #include "cc/surfaces/frame_sink_id.h" 60 #include "cc/surfaces/frame_sink_id.h"
61 #include "mojo/public/cpp/system/message_pipe.h" 61 #include "mojo/public/cpp/system/message_pipe.h"
62 62
63 namespace gpu { 63 namespace gpu {
64 class GpuMemoryBufferManager; 64 class GpuMemoryBufferManager;
65 } 65 }
66 66
67 namespace service_manager {
68 class Connector;
69 }
70
67 namespace v8 { 71 namespace v8 {
68 class Context; 72 class Context;
69 template <class T> 73 template <class T>
70 class Local; 74 class Local;
71 } 75 }
72 76
73 namespace blink { 77 namespace blink {
74 78
75 class Connector;
76 class InterfaceProvider; 79 class InterfaceProvider;
77 class WebAudioBus; 80 class WebAudioBus;
78 class WebAudioLatencyHint; 81 class WebAudioLatencyHint;
79 class WebBlobRegistry; 82 class WebBlobRegistry;
80 class WebCanvasCaptureHandler; 83 class WebCanvasCaptureHandler;
81 class WebClipboard; 84 class WebClipboard;
82 class WebCompositorSupport; 85 class WebCompositorSupport;
83 class WebCookieJar; 86 class WebCookieJar;
84 class WebCrypto; 87 class WebCrypto;
85 class WebDatabaseObserver; 88 class WebDatabaseObserver;
(...skipping 508 matching lines...) Expand 10 before | Expand all | Expand 10 after
594 virtual bool allowScriptExtensionForServiceWorker(const WebURL& scriptUrl) { 597 virtual bool allowScriptExtensionForServiceWorker(const WebURL& scriptUrl) {
595 return false; 598 return false;
596 } 599 }
597 600
598 // WebCrypto ---------------------------------------------------------- 601 // WebCrypto ----------------------------------------------------------
599 602
600 virtual WebCrypto* crypto() { return nullptr; } 603 virtual WebCrypto* crypto() { return nullptr; }
601 604
602 // Mojo --------------------------------------------------------------- 605 // Mojo ---------------------------------------------------------------
603 606
604 virtual Connector* connector(); 607 virtual service_manager::Connector* connector();
605 608
606 virtual InterfaceProvider* interfaceProvider(); 609 virtual InterfaceProvider* interfaceProvider();
607 610
608 // Platform events ----------------------------------------------------- 611 // Platform events -----------------------------------------------------
609 // Device Orientation, Device Motion, Device Light, Battery, Gamepad. 612 // Device Orientation, Device Motion, Device Light, Battery, Gamepad.
610 613
611 // Request the platform to start listening to the events of the specified 614 // Request the platform to start listening to the events of the specified
612 // type and notify the given listener (if not null) when there is an update. 615 // type and notify the given listener (if not null) when there is an update.
613 virtual void startListening(WebPlatformEventType type, 616 virtual void startListening(WebPlatformEventType type,
614 WebPlatformEventListener* listener) {} 617 WebPlatformEventListener* listener) {}
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
710 protected: 713 protected:
711 Platform(); 714 Platform();
712 virtual ~Platform() {} 715 virtual ~Platform() {}
713 716
714 WebThread* m_mainThread; 717 WebThread* m_mainThread;
715 }; 718 };
716 719
717 } // namespace blink 720 } // namespace blink
718 721
719 #endif 722 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/public/platform/Connector.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698