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

Side by Side Diff: third_party/WebKit/Source/platform/v8_inspector/V8Regex.h

Issue 2295913003: [DevTools] Switch from platform/v8_inspector to v8/v8-inspector.h. (Closed)
Patch Set: rebase 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
(Empty)
1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef V8Regex_h
6 #define V8Regex_h
7
8 #include "platform/v8_inspector/Allocator.h"
9 #include "platform/v8_inspector/String16.h"
10
11 #include <v8.h>
12
13 namespace v8_inspector {
14
15 class V8InspectorImpl;
16
17 enum MultilineMode {
18 MultilineDisabled,
19 MultilineEnabled
20 };
21
22 class V8Regex {
23 V8_INSPECTOR_DISALLOW_COPY(V8Regex);
24 public:
25 V8Regex(V8InspectorImpl*, const String16&, bool caseSensitive, bool multilin e = false);
26 int match(const String16&, int startFrom = 0, int* matchLength = 0) const;
27 bool isValid() const { return !m_regex.IsEmpty(); }
28 const String16& errorMessage() const { return m_errorMessage; }
29
30 private:
31 V8InspectorImpl* m_inspector;
32 v8::Global<v8::RegExp> m_regex;
33 String16 m_errorMessage;
34 };
35
36 } // namespace v8_inspector
37
38 #endif // V8Regex_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698