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

Side by Side Diff: third_party/WebKit/Source/core/frame/History.h

Issue 2282413002: Replaced PassRefPtr copies with moves in Source/core. (Closed)
Patch Set: rebased Created 4 years, 3 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) 2007 Apple Inc. All rights reserved. 2 * Copyright (C) 2007 Apple 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 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 53
54 unsigned length() const; 54 unsigned length() const;
55 SerializedScriptValue* state(); 55 SerializedScriptValue* state();
56 56
57 void back(ExecutionContext*); 57 void back(ExecutionContext*);
58 void forward(ExecutionContext*); 58 void forward(ExecutionContext*);
59 void go(ExecutionContext*, int delta); 59 void go(ExecutionContext*, int delta);
60 60
61 void pushState(PassRefPtr<SerializedScriptValue> data, const String& title, const String& url, ExceptionState& exceptionState) 61 void pushState(PassRefPtr<SerializedScriptValue> data, const String& title, const String& url, ExceptionState& exceptionState)
62 { 62 {
63 stateObjectAdded(data, title, url, scrollRestorationInternal(), FrameLoa dTypeStandard, exceptionState); 63 stateObjectAdded(std::move(data), title, url, scrollRestorationInternal( ), FrameLoadTypeStandard, exceptionState);
64 } 64 }
65 65
66 void replaceState(PassRefPtr<SerializedScriptValue> data, const String& titl e, const String& url, ExceptionState& exceptionState) 66 void replaceState(PassRefPtr<SerializedScriptValue> data, const String& titl e, const String& url, ExceptionState& exceptionState)
67 { 67 {
68 stateObjectAdded(data, title, url, scrollRestorationInternal(), FrameLoa dTypeReplaceCurrentItem, exceptionState); 68 stateObjectAdded(std::move(data), title, url, scrollRestorationInternal( ), FrameLoadTypeReplaceCurrentItem, exceptionState);
69 } 69 }
70 70
71 void setScrollRestoration(const String& value); 71 void setScrollRestoration(const String& value);
72 String scrollRestoration(); 72 String scrollRestoration();
73 73
74 bool stateChanged() const; 74 bool stateChanged() const;
75 bool isSameAsCurrentState(SerializedScriptValue*) const; 75 bool isSameAsCurrentState(SerializedScriptValue*) const;
76 76
77 77
78 DECLARE_VIRTUAL_TRACE(); 78 DECLARE_VIRTUAL_TRACE();
(...skipping 12 matching lines...) Expand all
91 void stateObjectAdded(PassRefPtr<SerializedScriptValue>, const String& title , const String& url, HistoryScrollRestorationType, FrameLoadType, ExceptionState &); 91 void stateObjectAdded(PassRefPtr<SerializedScriptValue>, const String& title , const String& url, HistoryScrollRestorationType, FrameLoadType, ExceptionState &);
92 SerializedScriptValue* stateInternal() const; 92 SerializedScriptValue* stateInternal() const;
93 HistoryScrollRestorationType scrollRestorationInternal() const; 93 HistoryScrollRestorationType scrollRestorationInternal() const;
94 94
95 RefPtr<SerializedScriptValue> m_lastStateObjectRequested; 95 RefPtr<SerializedScriptValue> m_lastStateObjectRequested;
96 }; 96 };
97 97
98 } // namespace blink 98 } // namespace blink
99 99
100 #endif // History_h 100 #endif // History_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/frame/FrameSerializer.cpp ('k') | third_party/WebKit/Source/core/frame/History.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698