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

Side by Side Diff: third_party/WebKit/Source/core/timing/PerformanceNavigation.h

Issue 2422913002: Add serializers for window.performance. (Closed)
Patch Set: remove performance.memory serialization. Created 4 years, 2 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 /* 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 21 matching lines...) Expand all
32 #define PerformanceNavigation_h 32 #define PerformanceNavigation_h
33 33
34 #include "bindings/core/v8/ScriptWrappable.h" 34 #include "bindings/core/v8/ScriptWrappable.h"
35 #include "core/CoreExport.h" 35 #include "core/CoreExport.h"
36 #include "core/frame/DOMWindowProperty.h" 36 #include "core/frame/DOMWindowProperty.h"
37 #include "platform/heap/Handle.h" 37 #include "platform/heap/Handle.h"
38 38
39 namespace blink { 39 namespace blink {
40 40
41 class LocalFrame; 41 class LocalFrame;
42 class ScriptState;
43 class ScriptValue;
42 44
43 class CORE_EXPORT PerformanceNavigation final 45 class CORE_EXPORT PerformanceNavigation final
44 : public GarbageCollected<PerformanceNavigation>, 46 : public GarbageCollected<PerformanceNavigation>,
45 public ScriptWrappable, 47 public ScriptWrappable,
46 public DOMWindowProperty { 48 public DOMWindowProperty {
47 DEFINE_WRAPPERTYPEINFO(); 49 DEFINE_WRAPPERTYPEINFO();
48 USING_GARBAGE_COLLECTED_MIXIN(PerformanceNavigation); 50 USING_GARBAGE_COLLECTED_MIXIN(PerformanceNavigation);
49 51
50 public: 52 public:
51 static PerformanceNavigation* create(LocalFrame* frame) { 53 static PerformanceNavigation* create(LocalFrame* frame) {
52 return new PerformanceNavigation(frame); 54 return new PerformanceNavigation(frame);
53 } 55 }
54 56
55 enum PerformanceNavigationType { 57 enum PerformanceNavigationType {
56 kTypeNavigate, 58 kTypeNavigate,
57 kTypeReload, 59 kTypeReload,
58 kTypeBackForward, 60 kTypeBackForward,
59 kTypeReserved = 255 61 kTypeReserved = 255
60 }; 62 };
61 63
62 unsigned short type() const; 64 unsigned short type() const;
63 unsigned short redirectCount() const; 65 unsigned short redirectCount() const;
64 66
67 ScriptValue toJSONForBinding(ScriptState*) const;
68
65 DECLARE_VIRTUAL_TRACE(); 69 DECLARE_VIRTUAL_TRACE();
66 70
67 private: 71 private:
68 explicit PerformanceNavigation(LocalFrame*); 72 explicit PerformanceNavigation(LocalFrame*);
69 }; 73 };
70 74
71 } // namespace blink 75 } // namespace blink
72 76
73 #endif // PerformanceNavigation_h 77 #endif // PerformanceNavigation_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/timing/Performance.idl ('k') | third_party/WebKit/Source/core/timing/PerformanceNavigation.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698