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

Side by Side Diff: third_party/WebKit/Source/bindings/core/v8/ScriptSourceCode.h

Issue 1883663005: Remove remaining binding layer RawPtr<>s. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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 /* 1 /*
2 * Copyright (C) 2008, 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2008, 2009 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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 43
44 class CORE_EXPORT ScriptSourceCode final { 44 class CORE_EXPORT ScriptSourceCode final {
45 DISALLOW_NEW_EXCEPT_PLACEMENT_NEW(); 45 DISALLOW_NEW_EXCEPT_PLACEMENT_NEW();
46 public: 46 public:
47 ScriptSourceCode(); 47 ScriptSourceCode();
48 // We lose the encoding information from ScriptResource. 48 // We lose the encoding information from ScriptResource.
49 // Not sure if that matters. 49 // Not sure if that matters.
50 explicit ScriptSourceCode(ScriptResource*); 50 explicit ScriptSourceCode(ScriptResource*);
51 ScriptSourceCode(const String&, const KURL& = KURL(), const TextPosition& st artPosition = TextPosition::minimumPosition()); 51 ScriptSourceCode(const String&, const KURL& = KURL(), const TextPosition& st artPosition = TextPosition::minimumPosition());
52 ScriptSourceCode(const CompressibleString&, const KURL& = KURL(), const Text Position& startPosition = TextPosition::minimumPosition()); 52 ScriptSourceCode(const CompressibleString&, const KURL& = KURL(), const Text Position& startPosition = TextPosition::minimumPosition());
53 ScriptSourceCode(RawPtr<ScriptStreamer>, ScriptResource*); 53 ScriptSourceCode(ScriptStreamer*, ScriptResource*);
54 54
55 ~ScriptSourceCode(); 55 ~ScriptSourceCode();
56 DECLARE_TRACE(); 56 DECLARE_TRACE();
57 57
58 bool isEmpty() const { return m_source.isEmpty(); } 58 bool isEmpty() const { return m_source.isEmpty(); }
59 59
60 // The null value represents a missing script, created by the nullary 60 // The null value represents a missing script, created by the nullary
61 // constructor, and differs from the empty script. 61 // constructor, and differs from the empty script.
62 bool isNull() const { return m_source.isNull(); } 62 bool isNull() const { return m_source.isNull(); }
63 63
(...skipping 14 matching lines...) Expand all
78 Member<ScriptStreamer> m_streamer; 78 Member<ScriptStreamer> m_streamer;
79 mutable KURL m_url; 79 mutable KURL m_url;
80 TextPosition m_startPosition; 80 TextPosition m_startPosition;
81 }; 81 };
82 82
83 } // namespace blink 83 } // namespace blink
84 84
85 WTF_ALLOW_INIT_WITH_MEM_FUNCTIONS(blink::ScriptSourceCode); 85 WTF_ALLOW_INIT_WITH_MEM_FUNCTIONS(blink::ScriptSourceCode);
86 86
87 #endif // ScriptSourceCode_h 87 #endif // ScriptSourceCode_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698