electron/atom/browser/web_contents_preferences.cc
2015-09-06 10:53:03 +08:00

25 lines
608 B
C++

// Copyright (c) 2015 GitHub, Inc.
// Use of this source code is governed by the MIT license that can be
// found in the LICENSE file.
#include "atom/browser/web_contents_preferences.h"
namespace atom {
namespace {
const char* kWebPreferencesKey = "WebContentsPreferences";
} // namespace
WebContentsPreferences::WebContentsPreferences(
content::WebContents* web_contents,
base::DictionaryValue&& web_preferences) {
web_preferences_.Swap(&web_preferences);
web_contents->SetUserData(kWebPreferencesKey, this);
}
WebContentsPreferences::~WebContentsPreferences() {
}
} // namespace atom