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

Side by Side Diff: Source/core/page/Performance.h

Issue 18778002: Inherit EventTarget interface instead of duplicating its code (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 5 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 | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2010 Google Inc. All rights reserved. 2 * Copyright (C) 2010 Google Inc. All rights reserved.
3 * Copyright (C) 2012 Intel Inc. All rights reserved. 3 * Copyright (C) 2012 Intel Inc. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are 6 * modification, are permitted provided that the following conditions are
7 * met: 7 * met:
8 * 8 *
9 * * Redistributions of source code must retain the above copyright 9 * * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 #include <wtf/RefPtr.h> 44 #include <wtf/RefPtr.h>
45 #include <wtf/text/WTFString.h> 45 #include <wtf/text/WTFString.h>
46 46
47 namespace WebCore { 47 namespace WebCore {
48 48
49 class Document; 49 class Document;
50 class ResourceRequest; 50 class ResourceRequest;
51 class ResourceResponse; 51 class ResourceResponse;
52 class UserTiming; 52 class UserTiming;
53 53
54 class Performance : public ScriptWrappable, public RefCounted<Performance>, publ ic DOMWindowProperty, public EventTarget { 54 class Performance : public EventTarget, public ScriptWrappable, public RefCounte d<Performance>, public DOMWindowProperty {
55 public: 55 public:
56 static PassRefPtr<Performance> create(Frame* frame) { return adoptRef(new Pe rformance(frame)); } 56 static PassRefPtr<Performance> create(Frame* frame) { return adoptRef(new Pe rformance(frame)); }
57 ~Performance(); 57 ~Performance();
58 58
59 virtual const AtomicString& interfaceName() const; 59 virtual const AtomicString& interfaceName() const;
60 virtual ScriptExecutionContext* scriptExecutionContext() const; 60 virtual ScriptExecutionContext* scriptExecutionContext() const;
61 61
62 PassRefPtr<MemoryInfo> memory() const; 62 PassRefPtr<MemoryInfo> memory() const;
63 PerformanceNavigation* navigation() const; 63 PerformanceNavigation* navigation() const;
64 PerformanceTiming* timing() const; 64 PerformanceTiming* timing() const;
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 100
101 Vector<RefPtr<PerformanceEntry> > m_resourceTimingBuffer; 101 Vector<RefPtr<PerformanceEntry> > m_resourceTimingBuffer;
102 unsigned m_resourceTimingBufferSize; 102 unsigned m_resourceTimingBufferSize;
103 103
104 RefPtr<UserTiming> m_userTiming; 104 RefPtr<UserTiming> m_userTiming;
105 }; 105 };
106 106
107 } 107 }
108 108
109 #endif // Performance_h 109 #endif // Performance_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698