OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "chrome/common/extensions/event_filtering_info.h" | 5 #include "extensions/common/event_filtering_info.h" |
6 | 6 |
| 7 #include "base/json/json_writer.h" |
7 #include "base/values.h" | 8 #include "base/values.h" |
8 #include "base/json/json_writer.h" | |
9 | 9 |
10 namespace extensions { | 10 namespace extensions { |
11 | 11 |
12 EventFilteringInfo::EventFilteringInfo() | 12 EventFilteringInfo::EventFilteringInfo() |
13 : has_url_(false) { | 13 : has_url_(false) { |
14 } | 14 } |
15 | 15 |
16 EventFilteringInfo::~EventFilteringInfo() { | 16 EventFilteringInfo::~EventFilteringInfo() { |
17 } | 17 } |
18 | 18 |
(...skipping 20 matching lines...) Expand all Loading... |
39 if (has_url_) | 39 if (has_url_) |
40 result->SetString("url", url_.spec()); | 40 result->SetString("url", url_.spec()); |
41 return result.PassAs<base::Value>(); | 41 return result.PassAs<base::Value>(); |
42 } | 42 } |
43 | 43 |
44 bool EventFilteringInfo::IsEmpty() const { | 44 bool EventFilteringInfo::IsEmpty() const { |
45 return !has_url_; | 45 return !has_url_; |
46 } | 46 } |
47 | 47 |
48 } // namespace extensions | 48 } // namespace extensions |
OLD | NEW |