bcaddd818b8e52abd5885afaae03eb48f723086b
[platform/framework/web/tizen-extensions-crosswalk.git] / web_setting / web_setting.h
1 // Copyright (c) 2014 Samsung Electronics Co., Ltd. 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
5 #ifndef WEB_SETTING_WEB_SETTING_H_
6 #define WEB_SETTING_WEB_SETTING_H_
7
8 #include <gio/gio.h>
9 #include <memory>
10 #include <string>
11
12 #include "common/picojson.h"
13
14 class WebSetting {
15  public:
16   explicit WebSetting(const std::string& app_id);
17   ~WebSetting();
18
19   std::unique_ptr<picojson::value> RemoveAllCookies();
20   std::unique_ptr<picojson::value> SetUserAgentString(const std::string& user_agent);
21
22  private:
23   std::string app_id_;
24   GDBusProxy* running_app_proxy_;
25 };
26
27 #endif  // WEB_SETTING_WEB_SETTING_H_