Update InspectableWebContentsImpl
This commit is contained in:
parent
db7959619e
commit
622fd8d1d7
2 changed files with 11 additions and 10 deletions
|
@ -144,7 +144,7 @@ class ResponseWriter : public net::URLFetcherResponseWriter {
|
|||
int Write(net::IOBuffer* buffer,
|
||||
int num_bytes,
|
||||
const net::CompletionCallback& callback) override;
|
||||
int Finish(const net::CompletionCallback& callback) override;
|
||||
int Finish(int net_error, const net::CompletionCallback& callback) override;
|
||||
|
||||
private:
|
||||
base::WeakPtr<InspectableWebContentsImpl> bindings_;
|
||||
|
@ -181,7 +181,8 @@ int ResponseWriter::Write(net::IOBuffer* buffer,
|
|||
return num_bytes;
|
||||
}
|
||||
|
||||
int ResponseWriter::Finish(const net::CompletionCallback& callback) {
|
||||
int ResponseWriter::Finish(int net_error,
|
||||
const net::CompletionCallback& callback) {
|
||||
return net::OK;
|
||||
}
|
||||
|
||||
|
@ -654,7 +655,7 @@ void InspectableWebContentsImpl::WebContentsDestroyed() {
|
|||
view_->GetDelegate()->DevToolsClosed();
|
||||
}
|
||||
|
||||
bool InspectableWebContentsImpl::AddMessageToConsole(
|
||||
bool InspectableWebContentsImpl::DidAddMessageToConsole(
|
||||
content::WebContents* source,
|
||||
int32_t level,
|
||||
const base::string16& message,
|
||||
|
@ -726,7 +727,7 @@ void InspectableWebContentsImpl::OnWebContentsFocused() {
|
|||
|
||||
void InspectableWebContentsImpl::DidStartNavigationToPendingEntry(
|
||||
const GURL& url,
|
||||
content::NavigationController::ReloadType reload_type) {
|
||||
content::ReloadType reload_type) {
|
||||
frontend_host_.reset(
|
||||
content::DevToolsFrontendHost::Create(
|
||||
web_contents()->GetMainFrame(),
|
||||
|
|
|
@ -133,14 +133,14 @@ class InspectableWebContentsImpl :
|
|||
void OnWebContentsFocused() override;
|
||||
void DidStartNavigationToPendingEntry(
|
||||
const GURL& url,
|
||||
content::NavigationController::ReloadType reload_type) override;
|
||||
content::ReloadType reload_type) override;
|
||||
|
||||
// content::WebContentsDelegate:
|
||||
bool AddMessageToConsole(content::WebContents* source,
|
||||
int32_t level,
|
||||
const base::string16& message,
|
||||
int32_t line_no,
|
||||
const base::string16& source_id) override;
|
||||
bool DidAddMessageToConsole(content::WebContents* source,
|
||||
int32_t level,
|
||||
const base::string16& message,
|
||||
int32_t line_no,
|
||||
const base::string16& source_id) override;
|
||||
bool ShouldCreateWebContents(
|
||||
content::WebContents* web_contents,
|
||||
int32_t route_id,
|
||||
|
|
Loading…
Reference in a new issue