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

Side by Side Diff: content/renderer/pepper/pepper_plugin_instance_impl.h

Issue 252663002: Track plugin input event latency (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: add more comments Created 6 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 CONTENT_RENDERER_PEPPER_PEPPER_PLUGIN_INSTANCE_IMPL_H_ 5 #ifndef CONTENT_RENDERER_PEPPER_PEPPER_PLUGIN_INSTANCE_IMPL_H_
6 #define CONTENT_RENDERER_PEPPER_PEPPER_PLUGIN_INSTANCE_IMPL_H_ 6 #define CONTENT_RENDERER_PEPPER_PEPPER_PLUGIN_INSTANCE_IMPL_H_
7 7
8 #include <list> 8 #include <list>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 #include "ppapi/thunk/ppb_gamepad_api.h" 49 #include "ppapi/thunk/ppb_gamepad_api.h"
50 #include "ppapi/thunk/resource_creation_api.h" 50 #include "ppapi/thunk/resource_creation_api.h"
51 #include "skia/ext/refptr.h" 51 #include "skia/ext/refptr.h"
52 #include "third_party/WebKit/public/platform/WebCanvas.h" 52 #include "third_party/WebKit/public/platform/WebCanvas.h"
53 #include "third_party/WebKit/public/platform/WebString.h" 53 #include "third_party/WebKit/public/platform/WebString.h"
54 #include "third_party/WebKit/public/platform/WebURLLoaderClient.h" 54 #include "third_party/WebKit/public/platform/WebURLLoaderClient.h"
55 #include "third_party/WebKit/public/platform/WebURLResponse.h" 55 #include "third_party/WebKit/public/platform/WebURLResponse.h"
56 #include "third_party/WebKit/public/web/WebPlugin.h" 56 #include "third_party/WebKit/public/web/WebPlugin.h"
57 #include "third_party/WebKit/public/web/WebUserGestureToken.h" 57 #include "third_party/WebKit/public/web/WebUserGestureToken.h"
58 #include "ui/base/ime/text_input_type.h" 58 #include "ui/base/ime/text_input_type.h"
59 #include "ui/events/latency_info.h"
59 #include "ui/gfx/rect.h" 60 #include "ui/gfx/rect.h"
60 #include "url/gurl.h" 61 #include "url/gurl.h"
61 62
62 struct PP_Point; 63 struct PP_Point;
63 struct _NPP; 64 struct _NPP;
64 65
65 class SkBitmap; 66 class SkBitmap;
66 class TransportDIB; 67 class TransportDIB;
67 68
68 namespace blink { 69 namespace blink {
(...skipping 429 matching lines...) Expand 10 before | Expand all | Expand 10 after
498 499
499 // cc::TextureLayerClient implementation. 500 // cc::TextureLayerClient implementation.
500 virtual bool PrepareTextureMailbox( 501 virtual bool PrepareTextureMailbox(
501 cc::TextureMailbox* mailbox, 502 cc::TextureMailbox* mailbox,
502 scoped_ptr<cc::SingleReleaseCallback>* release_callback, 503 scoped_ptr<cc::SingleReleaseCallback>* release_callback,
503 bool use_shared_memory) OVERRIDE; 504 bool use_shared_memory) OVERRIDE;
504 505
505 // RenderFrameObserver 506 // RenderFrameObserver
506 virtual void OnDestruct() OVERRIDE; 507 virtual void OnDestruct() OVERRIDE;
507 508
509 void AddLatencyInfo(const std::vector<ui::LatencyInfo>& latency_info);
510
508 private: 511 private:
509 friend class base::RefCounted<PepperPluginInstanceImpl>; 512 friend class base::RefCounted<PepperPluginInstanceImpl>;
510 friend class PpapiUnittest; 513 friend class PpapiUnittest;
511 514
512 // Delete should be called by the WebPlugin before this destructor. 515 // Delete should be called by the WebPlugin before this destructor.
513 virtual ~PepperPluginInstanceImpl(); 516 virtual ~PepperPluginInstanceImpl();
514 517
515 // Class to record document load notifications and play them back once the 518 // Class to record document load notifications and play them back once the
516 // real document loader becomes available. Used only by external instances. 519 // real document loader becomes available. Used only by external instances.
517 class ExternalDocumentLoader : public blink::WebURLLoaderClient { 520 class ExternalDocumentLoader : public blink::WebURLLoaderClient {
(...skipping 355 matching lines...) Expand 10 before | Expand all | Expand 10 after
873 base::WeakPtrFactory<PepperPluginInstanceImpl> view_change_weak_ptr_factory_; 876 base::WeakPtrFactory<PepperPluginInstanceImpl> view_change_weak_ptr_factory_;
874 base::WeakPtrFactory<PepperPluginInstanceImpl> weak_factory_; 877 base::WeakPtrFactory<PepperPluginInstanceImpl> weak_factory_;
875 878
876 friend class PpapiPluginInstanceTest; 879 friend class PpapiPluginInstanceTest;
877 DISALLOW_COPY_AND_ASSIGN(PepperPluginInstanceImpl); 880 DISALLOW_COPY_AND_ASSIGN(PepperPluginInstanceImpl);
878 }; 881 };
879 882
880 } // namespace content 883 } // namespace content
881 884
882 #endif // CONTENT_RENDERER_PEPPER_PEPPER_PLUGIN_INSTANCE_IMPL_H_ 885 #endif // CONTENT_RENDERER_PEPPER_PEPPER_PLUGIN_INSTANCE_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698