agent_util.h 748 B

1234567891011121314151617181920212223
  1. // Copyright 2019 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. #ifndef COMPONENTS_UI_DEVTOOLS_AGENT_UTIL_H_
  5. #define COMPONENTS_UI_DEVTOOLS_AGENT_UTIL_H_
  6. #include <string>
  7. #include "components/ui_devtools/devtools_export.h"
  8. namespace ui_devtools {
  9. UI_DEVTOOLS_EXPORT extern const char kChromiumCodeSearchURL[];
  10. UI_DEVTOOLS_EXPORT extern const char kChromiumCodeSearchSrcURL[];
  11. // Synchonously gets source code and returns true if successful.
  12. bool UI_DEVTOOLS_EXPORT GetSourceCode(std::string path,
  13. std::string* source_code);
  14. } // namespace ui_devtools
  15. #endif // COMPONENTS_UI_DEVTOOLS_AGENT_UTIL_H_