build: remove duplicate devtools sources (#14522)
* build: remove duplicate devtools sources * build: create separate target for chrome sources * Move sources that are always depended on by electron, starting with security_state_tab_helper.{cc|h} * Add //component/strings to pak for devtools security tab * fix: allow specifying type of the added filesystem. https://chromium-review.googlesource.com/c/chromium/src/+/729250 * fix: do not index excluded folders https://chromium-review.googlesource.com/c/chromium/src/+/972579
This commit is contained in:
parent
011c3b4326
commit
2cd03bf360
21 changed files with 122 additions and 1364 deletions
|
@ -11,9 +11,9 @@
|
|||
#include <vector>
|
||||
|
||||
#include "base/memory/weak_ptr.h"
|
||||
#include "brightray/browser/devtools_contents_resizing_strategy.h"
|
||||
#include "brightray/browser/devtools_embedder_message_dispatcher.h"
|
||||
#include "brightray/browser/inspectable_web_contents.h"
|
||||
#include "chrome/browser/devtools/devtools_contents_resizing_strategy.h"
|
||||
#include "chrome/browser/devtools/devtools_embedder_message_dispatcher.h"
|
||||
#include "content/public/browser/devtools_agent_host.h"
|
||||
#include "content/public/browser/devtools_frontend_host.h"
|
||||
#include "content/public/browser/web_contents_delegate.h"
|
||||
|
@ -92,12 +92,13 @@ class InspectableWebContentsImpl
|
|||
void AppendToFile(const std::string& url,
|
||||
const std::string& content) override;
|
||||
void RequestFileSystems() override;
|
||||
void AddFileSystem(const std::string& file_system_path) override;
|
||||
void AddFileSystem(const std::string& type) override;
|
||||
void RemoveFileSystem(const std::string& file_system_path) override;
|
||||
void UpgradeDraggedFileSystemPermissions(
|
||||
const std::string& file_system_url) override;
|
||||
void IndexPath(int index_request_id,
|
||||
const std::string& file_system_path) override;
|
||||
const std::string& file_system_path,
|
||||
const std::string& excluded_folders) override;
|
||||
void StopIndexing(int index_request_id) override;
|
||||
void SearchInPath(int search_request_id,
|
||||
const std::string& file_system_path,
|
||||
|
@ -133,6 +134,12 @@ class InspectableWebContentsImpl
|
|||
void ConnectionReady() override;
|
||||
void RegisterExtensionsAPI(const std::string& origin,
|
||||
const std::string& script) override;
|
||||
void Reattach(const DispatchCallback& callback) override;
|
||||
void RecordEnumeratedHistogram(const std::string& name,
|
||||
int sample,
|
||||
int boundary_value) override {}
|
||||
void ReadyForTest() override {}
|
||||
void SetOpenNewWindowForPopups(bool value) override {}
|
||||
|
||||
// content::DevToolsFrontendHostDelegate:
|
||||
void HandleMessageFromDevToolsFrontend(const std::string& message);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue