d01dc6dc11
When Chromium and V8 use the same version of inspector_protocol, any protocol change takes at least 4 patches and 3 waiting for rolls. To simplify this process we need to have two diffrent versions of inspector_protocol in Chromium and V8. Current state of inspector_protocol was extracted into separate repository [1]. This CL puts last version of inspector_protocol into third_party/inspector_protocol and removes dependency on inspector_protocol in Webkit. [1] https://chromium.googlesource.com/deps/inspector_protocol/ BUG=chromium:637032 R=dgozman@chromium.org CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_precise_blink_rel Review-Url: https://codereview.chromium.org/2447323002 Cr-Commit-Position: refs/heads/master@{#40655}
44 lines
1.2 KiB
Plaintext
44 lines
1.2 KiB
Plaintext
// Copyright 2016 The Chromium Authors. All rights reserved.
|
|
// Use of this source code is governed by a BSD-style license that can be
|
|
// found in the LICENSE file.
|
|
|
|
#ifndef {{"_".join(config.protocol.namespace)}}_Collections_h
|
|
#define {{"_".join(config.protocol.namespace)}}_Collections_h
|
|
|
|
#include "{{config.protocol.package}}/Forward.h"
|
|
#include <cstddef>
|
|
|
|
#if defined(__APPLE__) && !defined(_LIBCPP_VERSION)
|
|
#include <map>
|
|
#include <set>
|
|
|
|
{% for namespace in config.protocol.namespace %}
|
|
namespace {{namespace}} {
|
|
{% endfor %}
|
|
|
|
template <class Key, class T> using HashMap = std::map<Key, T>;
|
|
template <class Key> using HashSet = std::set<Key>;
|
|
|
|
{% for namespace in config.protocol.namespace %}
|
|
} // namespace {{namespace}}
|
|
{% endfor %}
|
|
|
|
#else
|
|
#include <unordered_map>
|
|
#include <unordered_set>
|
|
|
|
{% for namespace in config.protocol.namespace %}
|
|
namespace {{namespace}} {
|
|
{% endfor %}
|
|
|
|
template <class Key, class T> using HashMap = std::unordered_map<Key, T>;
|
|
template <class Key> using HashSet = std::unordered_set<Key>;
|
|
|
|
{% for namespace in config.protocol.namespace %}
|
|
} // namespace {{namespace}}
|
|
{% endfor %}
|
|
|
|
#endif // defined(__APPLE__) && !defined(_LIBCPP_VERSION)
|
|
|
|
#endif // !defined({{"_".join(config.protocol.namespace)}}_Collections_h)
|